Flowdock
method

each_local_configuration

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: DatabaseTasks
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 511
        def each_local_configuration
          ActiveRecord::Base.configurations.configs_for.each do |db_config|
            next unless db_config.database

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