diff options
author | Takehiro Adachi <takehiro0740@gmail.com> | 2013-05-18 17:12:46 +0900 |
---|---|---|
committer | Takehiro Adachi <takehiro0740@gmail.com> | 2013-05-18 17:12:46 +0900 |
commit | 0123c39f41e2062311b2197e6e230ef8ad67e20e (patch) | |
tree | f810f0ec406a962fbd9a6fe9b3d2b4c2136a4b75 /activerecord/test/schema | |
parent | 677b64fcd527529390e232ceedf8fa8bfac224e2 (diff) | |
download | rails-0123c39f41e2062311b2197e6e230ef8ad67e20e.tar.gz rails-0123c39f41e2062311b2197e6e230ef8ad67e20e.tar.bz2 rails-0123c39f41e2062311b2197e6e230ef8ad67e20e.zip |
Add test to AR's counter_cache_test.rb
According to
https://github.com/rails/rails/blob/b601399b72ab56cc01368f02615af99f45d1
4f02/activerecord/lib/active_record/counter_cache.rb#L14, u can pass
more then one association to the `reset_counters` method.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 8beb58f3fc..188a3f0164 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -675,6 +675,7 @@ ActiveRecord::Schema.define do end t.boolean :approved, :default => true t.integer :replies_count, :default => 0 + t.integer :unique_replies_count, :default => 0 t.integer :parent_id t.string :parent_title t.string :type |