Skip to content

Commit 535a244

Browse files
committed
Add ActiveRecord::Base.establish_connection behavior change to Rails 7.2 release notes.
While part of our upgrade from Rails 7.1 to Rails 7.2, one of the issues we encountered, and that was not very straightforward to find, was that things broke because we assumed that `ActiveRecord::Base.establish_connection` would make the connection active. Then we found this issue rails#52858 which helped us solve the issue. If this change had been part of the Rails 7.2 release notes, it would have saved some time.
1 parent 59a64cd commit 535a244

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guides/source/7_2_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
478478
479479
### Notable changes
480480
481+
* `ActiveRecord::Base.establish_connection` no longer sets `ActiveRecord::Base.connection.active?` to `true`. If you need this behavior, you can use `ActiveRecord::Base.connection.verify!` instead.
482+
481483
Active Storage
482484
--------------
483485

0 commit comments

Comments
 (0)