From 43d7d24e3ca2107c85c0f2c5330b7831af24ddd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Thu, 21 Feb 2019 17:40:08 +0100 Subject: [PATCH] Remove deprecated attributes from AdminNotification Some fields from AdminNotification are translatable and we no longer need them. This commit will remove the annoying deprecation warning thrown by Globalize gem after gem version update. --- ...precated_translatable_fields_from_admin_notifications.rb | 6 ++++++ db/schema.rb | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20190221163818_remove_deprecated_translatable_fields_from_admin_notifications.rb diff --git a/db/migrate/20190221163818_remove_deprecated_translatable_fields_from_admin_notifications.rb b/db/migrate/20190221163818_remove_deprecated_translatable_fields_from_admin_notifications.rb new file mode 100644 index 000000000..ff7d9230d --- /dev/null +++ b/db/migrate/20190221163818_remove_deprecated_translatable_fields_from_admin_notifications.rb @@ -0,0 +1,6 @@ +class RemoveDeprecatedTranslatableFieldsFromAdminNotifications < ActiveRecord::Migration[4.2] + def change + remove_column :admin_notifications, :title, :string + remove_column :admin_notifications, :body, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 1c8aa841b..bbde1f21d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -55,8 +55,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do end create_table "admin_notifications", force: :cascade do |t| - t.string "title" - t.text "body" t.string "link" t.string "segment_recipient" t.integer "recipients_count"