From f036f2a46f5c085505aff507f54518df8e283069 Mon Sep 17 00:00:00 2001 From: djones Date: Tue, 21 Sep 2010 17:20:08 +1200 Subject: added publish date support. fixes bug where categories were showing posts that were technically supposed to be hidden from the end user --- generators/refinery_blog/refinery_blog_generator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'generators/refinery_blog') diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb index 0748bf9..36fce61 100644 --- a/generators/refinery_blog/refinery_blog_generator.rb +++ b/generators/refinery_blog/refinery_blog_generator.rb @@ -38,6 +38,7 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase Rails::Generator::GeneratedAttribute.new('title', 'string'), Rails::Generator::GeneratedAttribute.new('body', 'text'), Rails::Generator::GeneratedAttribute.new('draft', 'boolean') + Rails::Generator::GeneratedAttribute.new('published_at', 'datetime') ], :id => true },{ :table_name => 'blog_comments', -- cgit v1.2.3