diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index fad6e947b0..fe6414ce47 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecated `database` kwarg from `connected_to`. + + *Eileen M. Uchitelle*, *John Crepezzi* + * Allow adding nonnamed expression indexes to be revertible. Fixes #40732. diff --git a/guides/source/6_1_release_notes.md b/guides/source/6_1_release_notes.md index bd371cac8e..a0b513aef8 100644 --- a/guides/source/6_1_release_notes.md +++ b/guides/source/6_1_release_notes.md @@ -235,6 +235,10 @@ Please refer to the [Changelog][active-record] for detailed changes. * Deprecate `ActiveRecord::Base.allow_unsafe_raw_sql`. +* Deprecate `database` kwarg on `connected_to`. + +* Deprecate `connection_handlers` when `legacy_connection_handling` is set to false. + ### Notable changes * MySQL: Uniqueness validator now respects default database collation, @@ -283,6 +287,8 @@ Please refer to the [Changelog][active-record] for detailed changes. User.where.not(name: "Jon", role: "admin") # SELECT * FROM users WHERE NOT (name == 'Jon' AND role == 'admin') +* To use the new per-database connection handling applications must change `legacy_connection_handling` to false and remove deprecated accessors on `connection_handlers`. Public methods for `connects_to` and `connected_to` require no changes. + Active Storage --------------