aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generators/refinery_blog/refinery_blog_generator.rb2
-rw-r--r--lib/generators/refinery_blog_generator.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb
index 36fce61..383d237 100644
--- a/generators/refinery_blog/refinery_blog_generator.rb
+++ b/generators/refinery_blog/refinery_blog_generator.rb
@@ -37,7 +37,7 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase
:attributes => [
Rails::Generator::GeneratedAttribute.new('title', 'string'),
Rails::Generator::GeneratedAttribute.new('body', 'text'),
- Rails::Generator::GeneratedAttribute.new('draft', 'boolean')
+ Rails::Generator::GeneratedAttribute.new('draft', 'boolean'),
Rails::Generator::GeneratedAttribute.new('published_at', 'datetime')
], :id => true
},{
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',