1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/schema
David Peter ee013a503d Fix bug where reset_counters resets the wrong counter cache.
If a model belongs_to two associations with the same class, then reset_counters
will reset the wrong counter cache.

Finding the right reflection should use the foreign_key instead, which should
be unique.
2012-01-16 19:06:45 -08:00
..
mysql2_specific_schema.rb Only use LOWER for mysql case insensitive uniqueness check when column has a case sensitive collation. 2011-10-09 13:14:07 -07:00
mysql_specific_schema.rb Only use LOWER for mysql case insensitive uniqueness check when column has a case sensitive collation. 2011-10-09 13:14:07 -07:00
oracle_specific_schema.rb added additional objects necessary for OracleAdapter specific tests 2009-08-06 23:40:59 +03:00
postgresql_specific_schema.rb Added tsvector Datatype Support 2011-04-26 09:47:40 +02:00
schema.rb Fix bug where reset_counters resets the wrong counter cache. 2012-01-16 19:06:45 -08:00
sqlite_specific_schema.rb Use schema.rb for all databases 2008-04-22 13:55:13 +12:00