Remove deprecated attributes from Poll::Question::Answer
Some fields from Poll::Question::Answer 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
3406983672
commit
2b23e9603d
@@ -0,0 +1,6 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromPollQuestionAnswers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :poll_question_answers, :title, :string
|
||||
remove_column :poll_question_answers, :description, :text
|
||||
end
|
||||
end
|
||||
@@ -1146,8 +1146,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
end
|
||||
|
||||
create_table "poll_question_answers", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
t.integer "question_id"
|
||||
t.integer "given_order", default: 1
|
||||
t.boolean "most_voted", default: false
|
||||
|
||||
Reference in New Issue
Block a user