Renaming site contents to site text

This commit is contained in:
Robin Ward
2014-09-24 14:45:35 -04:00
parent 84cf402482
commit bc53d48bd7
45 changed files with 349 additions and 350 deletions

View File

@@ -33,10 +33,10 @@ unless Rails.env.test?
})
create_static_page_topic('guidelines_topic_id', 'guidelines_topic.title', "guidelines_topic.body",
(SiteContent.content_for(:faq) rescue nil), staff, "guidelines")
(SiteText.text_for(:faq) rescue nil), staff, "guidelines")
create_static_page_topic('privacy_topic_id', 'privacy_topic.title', "privacy_topic.body",
(SiteContent.content_for(:privacy_policy) rescue nil), staff, "privacy policy")
(SiteText.text_for(:privacy_policy) rescue nil), staff, "privacy policy")
end
if seed_welcome_topics

View File

@@ -0,0 +1,7 @@
class RenameContentType < ActiveRecord::Migration
def change
rename_column :site_contents, :content_type, :text_type
rename_column :site_contents, :content, :value
rename_table :site_contents, :site_texts
end
end