From 8b33a48e0eadd5ff8cf8a76723670d75f2b45e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Thu, 21 Feb 2019 17:55:09 +0100 Subject: [PATCH] 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. --- ...recated_translatable_fields_from_legislation_questions.rb | 5 +++++ db/schema.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190221165347_remove_deprecated_translatable_fields_from_legislation_questions.rb diff --git a/db/migrate/20190221165347_remove_deprecated_translatable_fields_from_legislation_questions.rb b/db/migrate/20190221165347_remove_deprecated_translatable_fields_from_legislation_questions.rb new file mode 100644 index 000000000..a183c40c7 --- /dev/null +++ b/db/migrate/20190221165347_remove_deprecated_translatable_fields_from_legislation_questions.rb @@ -0,0 +1,5 @@ +class RemoveDeprecatedTranslatableFieldsFromLegislationQuestions < ActiveRecord::Migration[4.2] + def change + remove_column :legislation_questions, :title, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 353a522b2..8e19a9fe7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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