Commit cf24fb7930620f52de948d4a170b71ab34c6a12a
1 parent
9a6b9066
Exists in
master
and in
29 other branches
Added new migration
And a pending test
Showing
3 changed files
with
11 additions
and
1 deletions
Show diff stats
db/migrate/20111211233957_add_comment_count_to_action_tracker.rb
@@ -4,6 +4,6 @@ class AddCommentCountToActionTracker < ActiveRecord::Migration | @@ -4,6 +4,6 @@ class AddCommentCountToActionTracker < ActiveRecord::Migration | ||
4 | end | 4 | end |
5 | 5 | ||
6 | def self.down | 6 | def self.down |
7 | - remove_column :action_tracker, :comments_count, :integer, :default => 0 | 7 | + remove_column :action_tracker, :comments_count, :integer |
8 | end | 8 | end |
9 | end | 9 | end |
db/migrate/20120228154642_add_visibility_to_action_tracker.rb
0 → 100644
test/unit/comment_test.rb
@@ -331,4 +331,5 @@ class CommentTest < ActiveSupport::TestCase | @@ -331,4 +331,5 @@ class CommentTest < ActiveSupport::TestCase | ||
331 | 331 | ||
332 | should 'update article activity when add a comment' | 332 | should 'update article activity when add a comment' |
333 | should 'update activity when add a comment' | 333 | should 'update activity when add a comment' |
334 | + should 'create a new activity when add a comment and the activity was removed' | ||
334 | end | 335 | end |