diff options
Diffstat (limited to 'activerecord/test/models/comment.rb')
-rw-r--r-- | activerecord/test/models/comment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index 60ca082c2e..73ebdadf73 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -1,5 +1,5 @@ class Comment < ActiveRecord::Base - belongs_to :post + belongs_to :post, :counter_cache => true def self.what_are_you 'a comment...' @@ -20,4 +20,4 @@ class VerySpecialComment < Comment def self.what_are_you 'a very special comment...' end -end
\ No newline at end of file +end |