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
beerlington 3da275c439 Accept belongs_to assoc. keys in ActiveRecord queries
Allows you to specify the model association key in a belongs_to
relationship instead of the foreign key.

The following queries are now equivalent:

Post.where(:author_id => Author.first)
Post.where(:author => Author.first)

PriceEstimate.where(:estimate_of_type => 'Treasure', :estimate_of_id => treasure)
PriceEstimate.where(:estimate_of => treasure)
2012-09-11 14:11:51 -04:00
..
mysql2_specific_schema.rb fix: limit of enum columns of mysql 2012-06-28 03:15:43 +09:00
mysql_specific_schema.rb fix: limit of enum columns of mysql 2012-06-28 03:15:43 +09:00
oracle_specific_schema.rb
postgresql_specific_schema.rb postgres, map scaled intervals to string datatype (#7518) 2012-09-06 18:01:34 +02:00
schema.rb Accept belongs_to assoc. keys in ActiveRecord queries 2012-09-11 14:11:51 -04:00
sqlite_specific_schema.rb mispelling errors in render_text_test.rb and sqlite_specific_schema 2012-05-12 13:19:28 +02:00