more fields needed flagging as HTML fields

This commit is contained in:
Sam 2015-11-27 12:22:54 +11:00
parent 43d63367fd
commit 55b6f1aaa0
2 changed files with 14 additions and 2 deletions

View File

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

View File

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