https://github.com/rails/rails/pull/51162 refactors some of the inner workings of how database connections are handled, moving from a connection to a connection_pool. An example of this is the migration_context call, which this gem uses.
Prior to rails#51162 ActiveRecord::Base.connection.migration_context to after ActiveRecord::Base.connection_pool.migration_context.
This gem will need to be updated to support the new connection_pool, maybe worth considering adding edge rails to the Appraisals testing matrix as well.
Running
rails db:migrate
when on edge rails gives the following trace:https://github.com/rails/rails/pull/51162 refactors some of the inner workings of how database connections are handled, moving from a
connection
to aconnection_pool
. An example of this is themigration_context
call, which this gem uses.Prior to rails#51162
ActiveRecord::Base.connection.migration_context
to afterActiveRecord::Base.connection_pool.migration_context
.The code in question (maybe more places): https://github.com/widefix/actual_db_schema/blob/main/lib/actual_db_schema/commands/base.rb#L23
This gem will need to be updated to support the new connection_pool, maybe worth considering adding edge rails to the Appraisals testing matrix as well.