mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Renaming site contents to site text
This commit is contained in:
@@ -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
|
||||
|
||||
7
db/migrate/20140924192418_rename_content_type.rb
Normal file
7
db/migrate/20140924192418_rename_content_type.rb
Normal 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
|
||||
Reference in New Issue
Block a user