Remove deprecated attributes from Legislation::Question

Some fields from Legislation::Question are translatable and we no
longer need them. This commit will remove the annoying deprecation
warning thrown by Globalize gem after gem version update.
This commit is contained in:
Senén Rodero Rodríguez
2019-02-21 17:55:09 +01:00
committed by voodoorai2000
parent 957959e11d
commit 8b33a48e0e
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class RemoveDeprecatedTranslatableFieldsFromLegislationQuestions < ActiveRecord::Migration[4.2]
def change
remove_column :legislation_questions, :title, :text
end
end

View File

@@ -899,7 +899,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
create_table "legislation_questions", force: :cascade do |t|
t.integer "legislation_process_id"
t.text "title"
t.integer "answers_count", default: 0
t.datetime "hidden_at"
t.datetime "created_at", null: false