method

check_protected_environments!

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: DatabaseTasks
check_protected_environments!(environment = env) public

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 65
      def check_protected_environments!(environment = env)
        return if ENV["DISABLE_DATABASE_ENVIRONMENT_CHECK"]

        configs_for(env_name: environment).each do |db_config|
          check_current_protected_environment!(db_config)
        end
      end
Register or log in to add new notes.