CHANGELOG.md 1.6 KB
Newer Older
1 2 3 4 5
*   Migrations raise when duplicate column definition.

    Fixes #33024.

    *Federico Martinez*
R
Ryuta Kamizono 已提交
6

7 8 9 10
*   Bump minimum SQLite version to 3.8

    *Yasuo Honda*

11
*   Fix parent record should not get saved with duplicate children records.
12

13
    Fixes #32940.
14 15 16

    *Santosh Wadghule*

17 18 19 20
*   Fix logic on disabling commit callbacks so they are not called unexpectedly when errors occur.

    *Brian Durand*

21 22 23 24 25
*   Ensure `Associations::CollectionAssociation#size` and `Associations::CollectionAssociation#empty?`
    use loaded association ids if present.

    *Graham Turner*

26 27 28 29
*   Add support to preload associations of polymorphic associations when not all the records have the requested associations.

    *Dana Sherson*

30 31 32 33 34 35 36 37
*   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*

38
*   Add `ActiveRecord::Base.base_class?` predicate.
39 40 41

    *Bogdan Gusiev*

42
*   Add custom prefix/suffix options to `ActiveRecord::Store.store_accessor`.
43

44
    *Tan Huynh*, *Yukio Mizuta*
45

J
Jeremy Daer 已提交
46 47 48 49
*   Rails 6 requires Ruby 2.4.1 or newer.

    *Jeremy Daer*

50 51 52
*   Deprecate `update_attributes`/`!` in favor of `update`/`!`.

    *Eddie Lebow*
53 54 55 56 57

*   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*
58

59 60 61 62
*   Add `Relation#pick` as short-hand for single-value plucks.

    *DHH*

63

64
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md) for previous changes.