aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/generators/refinery_blog_generator.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/generators/refinery_blog_generator.rb b/lib/generators/refinery_blog_generator.rb
index db2e2ef..4f0cbe6 100644
--- a/lib/generators/refinery_blog_generator.rb
+++ b/lib/generators/refinery_blog_generator.rb
@@ -16,7 +16,8 @@ class RefineryBlogGenerator < Rails::Generators::NamedBase
:attributes => [
Rails::Generators::GeneratedAttribute.new('title', 'string'),
Rails::Generators::GeneratedAttribute.new('body', 'text'),
- Rails::Generators::GeneratedAttribute.new('draft', 'boolean')
+ Rails::Generators::GeneratedAttribute.new('draft', 'boolean'),
+ Rails::Generators::GeneratedAttribute.new('published_at', 'datetime')
], :id => true
},{
:table_name => 'blog_comments',