Remove deprecated attributes from Poll:Question

Some fields from Poll::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:30:56 +01:00
committed by voodoorai2000
parent 2575f863bc
commit 3406983672
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class RemoveDeprecatedTranslatableFieldsFromPollQuestions < ActiveRecord::Migration[4.2]
def change
remove_column :poll_questions, :title, :string
end
end

View File

@@ -1172,7 +1172,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
t.integer "poll_id"
t.integer "author_id"
t.string "author_visible_name"
t.string "title"
t.integer "comments_count"
t.datetime "hidden_at"
t.datetime "created_at"