作者在 2023-07-22 00:29:31 发布以下内容
如果出现类似信息
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
`legacy_connection_handling` to `false` in your application.
The new connection handling does not support `connection_handlers`
getter and setter.
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
在 config/environments/test.rb 加入config.active_record.legacy_connection_handling = false