Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ConnectionPool deprecation warning in Rails 7.2
Fixes this deprecation warning raised in Rails 7.2: ``` DEPRECATION WARNING: ActiveRecord::ConnectionAdapters::ConnectionPool#connection is deprecated and will be removed in Rails 8.0. Use #lease_connection instead. ``` The changed code is simply copied from the Rails repository, please see https://github.com/rails/rails/blob/97169912f197eee6e76fafb091113bddf624aa67/activerecord/lib/active_record/tasks/database_tasks.rb#L520 and https://github.com/rails/rails/blob/97169912f197eee6e76fafb091113bddf624aa67/activerecord/lib/active_record/tasks/database_tasks.rb#L550
- Loading branch information