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:
committed by
voodoorai2000
parent
2b23e9603d
commit
43d7d24e3c
@@ -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
|
||||||
@@ -55,8 +55,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_table "admin_notifications", force: :cascade do |t|
|
create_table "admin_notifications", force: :cascade do |t|
|
||||||
t.string "title"
|
|
||||||
t.text "body"
|
|
||||||
t.string "link"
|
t.string "link"
|
||||||
t.string "segment_recipient"
|
t.string "segment_recipient"
|
||||||
t.integer "recipients_count"
|
t.integer "recipients_count"
|
||||||
|
|||||||
Reference in New Issue
Block a user