From 34069836728ebaecb977964d1ee2828afde9c1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Thu, 21 Feb 2019 17:30:56 +0100 Subject: [PATCH] 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. --- ...ove_deprecated_translatable_fields_from_poll_questions.rb | 5 +++++ db/schema.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190221162858_remove_deprecated_translatable_fields_from_poll_questions.rb diff --git a/db/migrate/20190221162858_remove_deprecated_translatable_fields_from_poll_questions.rb b/db/migrate/20190221162858_remove_deprecated_translatable_fields_from_poll_questions.rb new file mode 100644 index 000000000..41823395a --- /dev/null +++ b/db/migrate/20190221162858_remove_deprecated_translatable_fields_from_poll_questions.rb @@ -0,0 +1,5 @@ +class RemoveDeprecatedTranslatableFieldsFromPollQuestions < ActiveRecord::Migration[4.2] + def change + remove_column :poll_questions, :title, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 70a8ec763..883952cad 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"