method

each_current_configuration

each_current_configuration(environment)
private

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 309
        def each_current_configuration(environment)
          environments = [environment]
          environments << "test" if environment == "development"

          ActiveRecord::Base.configurations.slice(*environments).each do |configuration_environment, configuration|
            next unless configuration["database"]

            yield configuration, configuration_environment
          end
        end