diff --git a/test/multiple_databases_test.rb b/test/multiple_databases_test.rb index 278b7def..80307fa2 100644 --- a/test/multiple_databases_test.rb +++ b/test/multiple_databases_test.rb @@ -46,13 +46,12 @@ def test_target_version_unconfigured def with_multiple_dbs(&block) previous_db_config = ActiveRecord::Base.connection_db_config.configuration_hash - multi_db_config = { + ActiveRecord::Base.configurations = { "test" => { "primary" => previous_db_config, "animals" => previous_db_config } } - ActiveRecord::Base.configurations = multi_db_config ActiveRecord::Base.connects_to(database: {writing: :primary}) yield ensure