method
each_current_configuration
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
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