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.
This commit is contained in:
Senén Rodero Rodríguez
2019-02-21 17:40:08 +01:00
committed by voodoorai2000
parent 2b23e9603d
commit 43d7d24e3c
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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"