method

each_current_environment

rails latest stable - Class: ActiveRecord::Tasks::DatabaseTasks

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

each_current_environment(environment, &block)
private

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 611
        def each_current_environment(environment, &block)
          environments = [environment]
          environments << "test" if environment == "development" && !ENV["SKIP_TEST_DATABASE"] && !ENV["DATABASE_URL"]
          environments.each(&block)
        end