method

each_local_configuration

Importance_0
each_local_configuration() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 484
        def each_local_configuration
          ActiveRecord::Base.configurations.configs_for.each do |db_config|
            configuration = db_config.config
            next unless configuration["database"]

            if local_database?(configuration)
              yield configuration
            else
              $stderr.puts "This task only modifies local databases. #{configuration['database']} is on a remote host."
            end
          end
        end
Register or log in to add new notes.