From 9f1ca4941f7c3e4d46a0f0203ea80f43132c8bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Thu, 21 Feb 2019 18:16:49 +0100 Subject: [PATCH] Remove deprecated attibutes from Legislation::Question::Option Some fields from Legislation::Question::Option are translatable and we no longer need them. This commit will remove the annoying deprecation warning thrown by Globalize gem after gem version update. --- ..._translatable_fields_from_legislation_question_options.rb | 5 +++++ db/schema.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190221171155_remove_deprecated_translatable_fields_from_legislation_question_options.rb diff --git a/db/migrate/20190221171155_remove_deprecated_translatable_fields_from_legislation_question_options.rb b/db/migrate/20190221171155_remove_deprecated_translatable_fields_from_legislation_question_options.rb new file mode 100644 index 000000000..efffef2be --- /dev/null +++ b/db/migrate/20190221171155_remove_deprecated_translatable_fields_from_legislation_question_options.rb @@ -0,0 +1,5 @@ +class RemoveDeprecatedTranslatableFieldsFromLegislationQuestionOptions < ActiveRecord::Migration[4.2] + def change + remove_column :legislation_question_options, :value, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 8e19a9fe7..21ba5dbb8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -876,7 +876,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do create_table "legislation_question_options", force: :cascade do |t| t.integer "legislation_question_id" - t.string "value" t.integer "answers_count", default: 0 t.datetime "hidden_at" t.datetime "created_at", null: false