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:
Senén Rodero Rodríguez
2019-02-21 18:21:03 +01:00
committed by voodoorai2000
parent 9f1ca4941f
commit 6e49a09a21
2 changed files with 7 additions and 3 deletions

View File

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

View File

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