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:
committed by
voodoorai2000
parent
957959e11d
commit
8b33a48e0e
@@ -0,0 +1,5 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromLegislationQuestions < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :legislation_questions, :title, :text
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user