lib/jets/overrides/rails/migration_checker.rb in jets-3.0.3 vs lib/jets/overrides/rails/migration_checker.rb in jets-3.0.4

- old
+ new

@@ -1,12 +1,16 @@ module ActiveRecord module MigrationChecker def prepare_test_db - current_config = ::ActiveRecord::Base.connection_config + current_config = ::ActiveRecord::Base.connection_db_config all_configs = ::ActiveRecord::Base.configurations.configs_for(env_name: Jets.env) needs_update = !all_configs.all? do |db_config| - ::ActiveRecord::Tasks::DatabaseTasks.schema_up_to_date?(db_config.config, ::ActiveRecord::Base.schema_format, nil, Jets.env, db_config.spec_name) + ::ActiveRecord::Tasks::DatabaseTasks.schema_up_to_date?( + db_config.configuration_hash, + ::ActiveRecord::Base.schema_format, + nil + ) end if needs_update # Roundtrip to Rake to allow plugins to hook into database initialization. FileUtils.cd(Jets.root) do