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:
Senén Rodero Rodríguez
2019-02-21 17:33:38 +01:00
committed by voodoorai2000
parent 3406983672
commit 2b23e9603d
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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