CHANGELOG.md 1.9 KB
Newer Older
1 2 3 4 5 6
*   Preserve user supplied joins order as much as possible.

    Fixes #36761, #34328, #24281, #12953.

    *Ryuta Kamizono*

7
*   Allow `matches_regex` and `does_not_match_regexp` on the MySQL Arel visitor.
J
James Pearson 已提交
8 9

    *James Pearson*
10

11 12 13 14
*   Allow specifying fixtures to be ignored by setting `ignore` in YAML file's '_fixture' section.

    *Tongfei Gao*

15 16 17 18
*   Make the DATABASE_URL env variable only affect the primary connection. Add new env variables for multiple databases.

    *John Crepezzi*, *Eileen Uchitelle*

19 20 21 22 23 24 25 26
*   Add a warning for enum elements with 'not_' prefix.

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

    *Edu Depetris*

27 28 29 30
*   Make currency symbols optional for money column type in PostgreSQL

    *Joel Schneider*

31 32 33 34
*   Add support for beginless ranges, introduced in Ruby 2.7.

    *Josh Goodall*

35 36
*   Add database_exists? method to connection adapters to check if a database exists.

R
Roberto Miranda 已提交
37
    *Guilherme Mansur*
38

39 40 41 42
*   Loading the schema for a model that has no `table_name` raises a `TableNotSpecified` error.

    *Guilherme Mansur*, *Eugene Kenny*

43 44 45 46 47 48
*   PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.

    Fixes #36022.

    *Ryuta Kamizono*

49 50 51 52 53 54
*   Make ActiveRecord `ConnectionPool.connections` method thread-safe.

    Fixes #36465.

    *Jeff Doering*

55 56 57 58
*   Add support for multiple databases to `rails db:abort_if_pending_migrations`.

    *Mark Lee*

59 60 61 62
*   Fix sqlite3 collation parsing when using decimal columns.

    *Martin R. Schuster*

63
*   Fix invalid schema when primary key column has a comment.
64

65
    Fixes #29966.
66 67 68

    *Guilherme Goettems Schneider*

69
*   Fix table comment also being applied to the primary key column.
70 71 72

    *Guilherme Goettems Schneider*

73
*   Allow generated `create_table` migrations to include or skip timestamps.
74

75 76
    *Michael Duchemin*

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