diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-02 09:23:02 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-02 09:23:02 -0700 |
commit | 2bc1ac77f688c90fa7e1efc83e60068c64006269 (patch) | |
tree | 281ab209e7ad1c580fb919c29ad0ff30f73a6fb7 /activerecord/test/schema | |
parent | 0d41d6956f3dda7e8eb133b623bcfd6ad1eb41a1 (diff) | |
parent | 6e56a03f834202af4e57c50a71cc74ea08303bfd (diff) | |
download | rails-2bc1ac77f688c90fa7e1efc83e60068c64006269.tar.gz rails-2bc1ac77f688c90fa7e1efc83e60068c64006269.tar.bz2 rails-2bc1ac77f688c90fa7e1efc83e60068c64006269.zip |
Merge pull request #7822 from lulalala/reset-counter-cache-for-has-many-through
Fix reset_counters crashing on has_many :through associations.
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 798ea20efc..2e4ec96933 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -621,6 +621,7 @@ ActiveRecord::Schema.define do create_table :subscribers, :force => true, :id => false do |t| t.string :nick, :null => false t.string :name + t.column :books_count, :integer, :null => false, :default => 0 end add_index :subscribers, :nick, :unique => true |