APIdock / Ruby on Rails
/
Browse About
method

each_local_configuration

v7.0.0 - Show latest stable - Class: ActiveRecord::Tasks::DatabaseTasks
each_local_configuration()
private

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 553
        def each_local_configuration
          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

Related methods

  • Instance methods
  • cache_dump_filename
  • charset
  • charset_current
  • check_protected_environments!
  • check_schema_file
  • check_target_version
  • clear_schema_cache
  • collation
  • collation_current
  • create
  • create_all
  • create_current
  • db_configs_with_versions
  • db_dir
  • drop
  • drop_all
  • drop_current
  • dump_schema
  • dump_schema_cache
  • env
  • fixtures_path
  • for_each
  • load_schema
  • load_schema_current
  • load_seed
  • migrate
  • migrate_status
  • migrations_paths
  • name
  • prepare_all
  • purge
  • purge_all
  • purge_current
  • raise_for_multi_db
  • reconstruct_from_schema
  • register_task
  • root
  • schema_dump_path
  • schema_file_type
  • schema_up_to_date?
  • seed_loader
  • setup_initial_database_yaml
  • structure_dump
  • structure_load
  • target_version
  • truncate_all
  • Class methods
  • structure_dump_flags
  • structure_load_flags
  • Private methods
  • privateclass_for_adapter
  • privateconfigs_for
  • privatedatabase_adapter_for
  • privateeach_current_configuration
  • privateeach_local_configuration
  • privatelocal_database?
  • privateresolve_configuration
  • privateschema_sha1
  • privatestructure_dump_flags_for
  • privatestructure_load_flags_for
  • privatetruncate_tables
  • privateverbose?
APIdock API Documentation Browser

Measure software delivery performance with DORA metrics in Swarmia.

© 2026 APIdock