diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-10 18:35:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-10 18:35:48 +0000 |
commit | 55ed70529aefdb3029f5ab72169b2f7909b2f2a3 (patch) | |
tree | 1f1dbf48685483905949c121cafe36e26c7efc7c /db/migrate/011_add_news_comments_count.rb | |
parent | 28c6aa4e6dfe7b4261cd4b4feb50eda62ace0572 (diff) | |
download | redmine-55ed70529aefdb3029f5ab72169b2f7909b2f2a3.tar.gz redmine-55ed70529aefdb3029f5ab72169b2f7909b2f2a3.zip |
added model Comment.
comments can now be added on news.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@81 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/011_add_news_comments_count.rb')
-rw-r--r-- | db/migrate/011_add_news_comments_count.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/011_add_news_comments_count.rb b/db/migrate/011_add_news_comments_count.rb new file mode 100644 index 000000000..a24743999 --- /dev/null +++ b/db/migrate/011_add_news_comments_count.rb @@ -0,0 +1,9 @@ +class AddNewsCommentsCount < ActiveRecord::Migration + def self.up + add_column :news, :comments_count, :integer, :default => 0, :null => false + end + + def self.down + remove_column :news, :comments_count + end +end |