2018-05-30 23:49:25 -04:00
|
|
|
* Migrations raise when duplicate column definition.
|
|
|
|
|
|
|
|
Fixes #33024.
|
|
|
|
|
|
|
|
*Federico Martinez*
|
2018-06-10 07:39:10 -04:00
|
|
|
|
2018-06-01 02:55:40 -04:00
|
|
|
* Bump minimum SQLite version to 3.8
|
|
|
|
|
|
|
|
*Yasuo Honda*
|
|
|
|
|
2018-05-28 17:56:46 -04:00
|
|
|
* Fix parent record should not get saved with duplicate children records.
|
2018-05-22 09:34:24 -04:00
|
|
|
|
2018-05-28 17:56:46 -04:00
|
|
|
Fixes #32940.
|
2018-05-22 09:34:24 -04:00
|
|
|
|
|
|
|
*Santosh Wadghule*
|
|
|
|
|
2018-05-03 20:27:20 -04:00
|
|
|
* Fix logic on disabling commit callbacks so they are not called unexpectedly when errors occur.
|
|
|
|
|
|
|
|
*Brian Durand*
|
|
|
|
|
2018-04-17 21:56:33 -04:00
|
|
|
* Ensure `Associations::CollectionAssociation#size` and `Associations::CollectionAssociation#empty?`
|
|
|
|
use loaded association ids if present.
|
|
|
|
|
|
|
|
*Graham Turner*
|
|
|
|
|
2018-04-19 20:56:49 -04:00
|
|
|
* Add support to preload associations of polymorphic associations when not all the records have the requested associations.
|
|
|
|
|
|
|
|
*Dana Sherson*
|
|
|
|
|
2017-12-19 13:42:46 -05: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 10:30:24 -04:00
|
|
|
* Add `ActiveRecord::Base.base_class?` predicate.
|
2018-04-02 07:17:24 -04:00
|
|
|
|
|
|
|
*Bogdan Gusiev*
|
|
|
|
|
2018-06-12 22:03:03 -04:00
|
|
|
* Add custom prefix/suffix options to `ActiveRecord::Store.store_accessor`.
|
2018-03-20 02:02:23 -04:00
|
|
|
|
2018-06-12 22:03:03 -04:00
|
|
|
*Tan Huynh*, *Yukio Mizuta*
|
2018-03-20 02:02:23 -04:00
|
|
|
|
2018-02-17 16:02:18 -05:00
|
|
|
* Rails 6 requires Ruby 2.4.1 or newer.
|
|
|
|
|
|
|
|
*Jeremy Daer*
|
|
|
|
|
2018-02-14 21:33:02 -05:00
|
|
|
* Deprecate `update_attributes`/`!` in favor of `update`/`!`.
|
|
|
|
|
|
|
|
*Eddie Lebow*
|
2018-02-14 19:51:15 -05: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 07:28:42 -05:00
|
|
|
|
2018-02-18 10:01:46 -05:00
|
|
|
* Add `Relation#pick` as short-hand for single-value plucks.
|
|
|
|
|
|
|
|
*DHH*
|
|
|
|
|
2018-01-29 07:28:42 -05:00
|
|
|
|
2018-01-30 18:51:17 -05:00
|
|
|
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes.
|