Remove deprecated attributes from SiteCustomization::Page
Some fields from SiteCustomization::page 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
9f1ca4941f
commit
6e49a09a21
@@ -0,0 +1,7 @@
|
||||
class RemoveDeprecatedTranslatableFieldsFromSiteCustomizationPages < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
remove_column :site_customization_pages, :title, :string
|
||||
remove_column :site_customization_pages, :subtitle, :string
|
||||
remove_column :site_customization_pages, :content, :text
|
||||
end
|
||||
end
|
||||
@@ -1425,9 +1425,6 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
|
||||
create_table "site_customization_pages", force: :cascade do |t|
|
||||
t.string "slug", null: false
|
||||
t.string "title"
|
||||
t.string "subtitle"
|
||||
t.text "content"
|
||||
t.boolean "more_info_flag"
|
||||
t.boolean "print_content_flag"
|
||||
t.string "status", default: "draft"
|
||||
|
||||
Reference in New Issue
Block a user