CHANGELOG.md 1.4 KB
Newer Older
1 2 3 4 5 6 7 8
*   Add a warning for enum elements with 'not_' prefix.

        class Foo
          enum status: [:sent, :not_sent]
        end

    *Edu Depetris*

9 10 11 12
*   Make currency symbols optional for money column type in PostgreSQL

    *Joel Schneider*

13 14 15 16
*   Add support for beginless ranges, introduced in Ruby 2.7.

    *Josh Goodall*

17 18
*   Add database_exists? method to connection adapters to check if a database exists.

R
Roberto Miranda 已提交
19
    *Guilherme Mansur*
20

21 22 23 24
*   Loading the schema for a model that has no `table_name` raises a `TableNotSpecified` error.

    *Guilherme Mansur*, *Eugene Kenny*

25 26 27 28 29 30
*   PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.

    Fixes #36022.

    *Ryuta Kamizono*

31 32 33 34 35 36
*   Make ActiveRecord `ConnectionPool.connections` method thread-safe.

    Fixes #36465.

    *Jeff Doering*

37 38 39 40
*   Add support for multiple databases to `rails db:abort_if_pending_migrations`.

    *Mark Lee*

41 42 43 44
*   Fix sqlite3 collation parsing when using decimal columns.

    *Martin R. Schuster*

45
*   Fix invalid schema when primary key column has a comment.
46

47
    Fixes #29966.
48 49 50

    *Guilherme Goettems Schneider*

51
*   Fix table comment also being applied to the primary key column.
52 53 54

    *Guilherme Goettems Schneider*

55
*   Allow generated `create_table` migrations to include or skip timestamps.
56

57 58
    *Michael Duchemin*

59

60
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activerecord/CHANGELOG.md) for previous changes.