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
Rafael Mendonça França b0a8ef140e has_one and belongs_to accessors don't add ORDER BY to the queries anymore.
Since Rails 4.0, we add an ORDER BY in the `first` method to ensure consistent
results among different database engines. But for singular associations this
behavior is not needed since we will have one record to return. As this
ORDER BY option can lead some performance issues we are removing it for singular
associations accessors.

Fixes #12623.
2014-01-21 14:41:52 -02:00
..
active_record/connection_adapters
assets
cases has_one and belongs_to accessors don't add ORDER BY to the queries anymore. 2014-01-21 14:41:52 -02:00
fixtures Ensure #second acts like #first AR finder 2014-01-20 16:58:18 -05:00
migrations activerecord: Initialize Migration with version from MigrationProxy. 2014-01-06 10:46:35 -05:00
models Make AR::Base#touch fire the after_commit and after_rollback callbacks 2014-01-16 09:05:59 -02:00
schema Don't try to get the subclass if the inheritance column doesn't exist 2014-01-14 18:53:45 +05:30
support Deprecate use of string in establish_connection as connection lookup 2013-12-24 10:18:54 +01:00
.gitignore
config.example.yml
config.rb