aboutsummaryrefslogtreecommitdiffstats
path: root/generators
diff options
context:
space:
mode:
Diffstat (limited to 'generators')
-rw-r--r--generators/refinery_blog/refinery_blog_generator.rb3
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',