mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Synced AR release notes [ci-skip]
This commit is contained in:
parent
79d50ce310
commit
f288533b4f
1 changed files with 18 additions and 0 deletions
|
@ -305,6 +305,17 @@ for detailed changes.
|
|||
|
||||
### Deprecations
|
||||
|
||||
* Deprecated swallowing of errors inside `after_commit` and `after_rollback`.
|
||||
([Pull Request](https://github.com/rails/rails/pull/16537))
|
||||
|
||||
* Deprecated calling `DatabaseTasks.load_schema` without a connection. Use
|
||||
`DatabaseTasks.load_schema_current` instead.
|
||||
([Commit](https://github.com/rails/rails/commit/f15cef67f75e4b52fd45655d7c6ab6b35623c608))
|
||||
|
||||
* Deprecated `Reflection#source_macro` without replacement as it is no longer
|
||||
needed in Active Record.
|
||||
([Pull Request](https://github.com/rails/rails/pull/16373))
|
||||
|
||||
* Deprecated broken support for automatic detection of counter caches on
|
||||
`has_many :through` associations. You should instead manually specify the
|
||||
counter cache on the `has_many` and `belongs_to` associations for the
|
||||
|
@ -342,6 +353,13 @@ for detailed changes.
|
|||
|
||||
### Notable changes
|
||||
|
||||
* The PostgreSQL adapter now supports the `JSONB` datatype in PostgreSQL 9.4+.
|
||||
([Pull Request](https://github.com/rails/rails/pull/16220))
|
||||
|
||||
* The `#references` method in migrations now supports a `type` option for
|
||||
specifying the type of the foreign key (e.g. `:uuid`).
|
||||
([Pull Request](https://github.com/rails/rails/pull/16231))
|
||||
|
||||
* Added a `:required` option to singular associations, which defines a
|
||||
presence validation on the association.
|
||||
([Pull Request](https://github.com/rails/rails/pull/16056))
|
||||
|
|
Loading…
Reference in a new issue