diff --git a/app/models/site_customization.rb b/app/models/site_customization.rb index 3cb7862299c..501c7208458 100644 --- a/app/models/site_customization.rb +++ b/app/models/site_customization.rb @@ -11,7 +11,7 @@ class SiteCustomization < ActiveRecord::Base end def self.html_fields - %w(body_tag head_tag) + %w(body_tag head_tag header mobile_header footer mobile_footer) end before_create do @@ -220,6 +220,7 @@ end # name :string(255) not null # stylesheet :text # header :text +# header_baked :text # user_id :integer not null # enabled :boolean not null # key :string(255) not null @@ -227,10 +228,13 @@ end # updated_at :datetime not null # stylesheet_baked :text default(""), not null # mobile_stylesheet :text -# mobile_header :text # mobile_stylesheet_baked :text # footer :text +# footer_baked :text +# mobile_header :text # mobile_footer :text +# mobile_header_baked :text +# mobile_footer_baked :text # head_tag :text # body_tag :text # head_tag_baked :text diff --git a/db/migrate/20151127011837_add_header_and_footer_baked_to_site_customizations.rb b/db/migrate/20151127011837_add_header_and_footer_baked_to_site_customizations.rb new file mode 100644 index 00000000000..7e35898d033 --- /dev/null +++ b/db/migrate/20151127011837_add_header_and_footer_baked_to_site_customizations.rb @@ -0,0 +1,8 @@ +class AddHeaderAndFooterBakedToSiteCustomizations < ActiveRecord::Migration + def change + add_column :site_customizations, :header_baked, :text + add_column :site_customizations, :mobile_header_baked, :text + add_column :site_customizations, :footer_baked, :text + add_column :site_customizations, :mobile_footer_baked, :text + end +end