diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-30 11:14:46 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-30 11:14:46 +1200 |
commit | 4d1e364085c0de27d3ca58cc90eba9036744fc79 (patch) | |
tree | 2e0282206a95fc6fb91ec8aea38843543e886c85 /generators | |
parent | 21dca99ddf7eadb929bc9fe40a6b3f9fd90b2f41 (diff) | |
download | refinerycms-blog-4d1e364085c0de27d3ca58cc90eba9036744fc79.tar.gz refinerycms-blog-4d1e364085c0de27d3ca58cc90eba9036744fc79.tar.bz2 refinerycms-blog-4d1e364085c0de27d3ca58cc90eba9036744fc79.zip |
Comments are now moderated automatically unless moderation is enabled and show up below posts.
Diffstat (limited to 'generators')
-rw-r--r-- | generators/refinery_blog/refinery_blog_generator.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb index 524868b..2bf39d8 100644 --- a/generators/refinery_blog/refinery_blog_generator.rb +++ b/generators/refinery_blog/refinery_blog_generator.rb @@ -43,11 +43,12 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase },{ :table_name => 'blog_comments', :attributes => [ + Rails::Generator::GeneratedAttribute.new('blog_post_id', 'integer'), + Rails::Generator::GeneratedAttribute.new('spam', 'boolean'), Rails::Generator::GeneratedAttribute.new('name', 'string'), Rails::Generator::GeneratedAttribute.new('email', 'string'), Rails::Generator::GeneratedAttribute.new('body', 'text'), Rails::Generator::GeneratedAttribute.new('state', 'string'), - Rails::Generator::GeneratedAttribute.new('blog_post_id', 'integer') ], :id => true },{ :table_name => 'blog_categories', |