Commit cf24fb7930620f52de948d4a170b71ab34c6a12a

Authored by Daniela Feitosa
1 parent 9a6b9066

Added new migration

And a pending test
db/migrate/20111211233957_add_comment_count_to_action_tracker.rb
... ... @@ -4,6 +4,6 @@ class AddCommentCountToActionTracker < ActiveRecord::Migration
4 4 end
5 5  
6 6 def self.down
7   - remove_column :action_tracker, :comments_count, :integer, :default => 0
  7 + remove_column :action_tracker, :comments_count, :integer
8 8 end
9 9 end
... ...
db/migrate/20120228154642_add_visibility_to_action_tracker.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class AddVisibilityToActionTracker < ActiveRecord::Migration
  2 + def self.up
  3 + add_column :action_tracker, :visible, :boolean, :default => true
  4 + end
  5 +
  6 + def self.down
  7 + remove_column :action_tracker, :visible, :boolean
  8 + end
  9 +end
... ...
test/unit/comment_test.rb
... ... @@ -331,4 +331,5 @@ class CommentTest &lt; ActiveSupport::TestCase
331 331  
332 332 should 'update article activity when add a comment'
333 333 should 'update activity when add a comment'
  334 + should 'create a new activity when add a comment and the activity was removed'
334 335 end
... ...