From 4d1e364085c0de27d3ca58cc90eba9036744fc79 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 30 Aug 2010 11:14:46 +1200 Subject: Comments are now moderated automatically unless moderation is enabled and show up below posts. --- generators/refinery_blog/refinery_blog_generator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'generators') 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', -- cgit v1.2.3