in Rails: Add basic rake tasks for multi db setup Part 2: Multi-db improvements, Refactor Active Record con gurations Part 3: Multi-db Improvements, identifying replica con gurations Part 4: Multi db improvements, Basic API for connection switching Part 5: Multi db improvements, Fix query cache for multiple connections Part 6: Multi db improvements, Make connection handler per thread instead of per ber Part 7: Multi db improvements, Add ability to block writes to a database Part 8: Multi db improvements, Adds basic automatic database switching to Rails Add ability to change the names of the default handlers For xtures share the connection pool when there are multiple handlers
Zeitwerkを使用するにはload_defaultsに6.0を指定する or con g.autoloaderに:zeitwerkを指定する ZeitwerkはJRuby未サポートらしく、JRubyの場合load_defaultsに6.0を指 定してもclassic autoloaderが使用される
Springがコードをreloadするが上記制限によりエラーになる テスト環境でSpringを使用している場合cache_classes = falseを指 要がある generate con g.cache_classes = false if Spring https://github.com/rails/rails/commit/65344f254cde87950c7f176cb7aa0