Remove deprecated attributes from Debates

Some fields from Debates are deprecated and we no longer need them.
This commit is contained in:
taitus
2020-08-31 13:31:05 +02:00
parent 5eed36ca8e
commit 086b0366a2
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
class RemoveDeprecatedFieldsFromDebates < ActiveRecord::Migration[5.1]
def change
remove_column :debates, :deprecated_title, :string
remove_column :debates, :deprecated_description, :text
end
end

View File

@@ -480,8 +480,6 @@ ActiveRecord::Schema.define(version: 20200908084257) do
end
create_table "debates", id: :serial, force: :cascade do |t|
t.string "deprecated_title", limit: 80
t.text "deprecated_description"
t.integer "author_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false