2018-05-04 00:27:20 +00:00
|
|
|
* Fix logic on disabling commit callbacks so they are not called unexpectedly when errors occur.
|
|
|
|
|
|
|
|
*Brian Durand*
|
|
|
|
|
2018-04-18 01:56:33 +00:00
|
|
|
* Ensure `Associations::CollectionAssociation#size` and `Associations::CollectionAssociation#empty?`
|
|
|
|
use loaded association ids if present.
|
|
|
|
|
|
|
|
*Graham Turner*
|
|
|
|
|
2018-04-20 00:56:49 +00:00
|
|
|
* Add support to preload associations of polymorphic associations when not all the records have the requested associations.
|
|
|
|
|
|
|
|
*Dana Sherson*
|
|
|
|
|
2017-12-19 18:42:46 +00:00
|
|
|
* Add `touch_all` method to `ActiveRecord::Relation`.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
Person.where(name: "David").touch_all(time: Time.new(2020, 5, 16, 0, 0, 0))
|
|
|
|
|
|
|
|
*fatkodima*, *duggiefresh*
|
|
|
|
|
2018-04-02 14:30:24 +00:00
|
|
|
* Add `ActiveRecord::Base.base_class?` predicate.
|
2018-04-02 11:17:24 +00:00
|
|
|
|
|
|
|
*Bogdan Gusiev*
|
|
|
|
|
2018-03-20 06:02:23 +00:00
|
|
|
* Add custom prefix option to ActiveRecord::Store.store_accessor.
|
|
|
|
|
|
|
|
*Tan Huynh*
|
|
|
|
|
2018-02-17 21:02:18 +00:00
|
|
|
* Rails 6 requires Ruby 2.4.1 or newer.
|
|
|
|
|
|
|
|
*Jeremy Daer*
|
|
|
|
|
2018-02-15 02:33:02 +00:00
|
|
|
* Deprecate `update_attributes`/`!` in favor of `update`/`!`.
|
|
|
|
|
|
|
|
*Eddie Lebow*
|
2018-02-15 00:51:15 +00:00
|
|
|
|
|
|
|
* Add ActiveRecord::Base.create_or_find_by/! to deal with the SELECT/INSERT race condition in
|
|
|
|
ActiveRecord::Base.find_or_create_by/! by leaning on unique constraints in the database.
|
|
|
|
|
|
|
|
*DHH*
|
2018-01-29 12:28:42 +00:00
|
|
|
|
2018-02-18 15:01:46 +00:00
|
|
|
* Add `Relation#pick` as short-hand for single-value plucks.
|
|
|
|
|
|
|
|
*DHH*
|
|
|
|
|
2018-01-29 12:28:42 +00:00
|
|
|
|
2018-01-30 23:51:17 +00:00
|
|
|
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes.
|