diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2016-01-09 07:32:29 -0600 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2016-01-09 07:32:29 -0600 |
commit | b588653ac0ce12b8caf448b3a08cb099db8ac356 (patch) | |
tree | 75f8a4709cbec3c8147895ee8dd6a6c0cdc5fd81 | |
parent | a7a2bc0f66dd934ace716891cfcc422e2087ffeb (diff) | |
parent | 3ba176d0a07728e9505609967b518d85129bff24 (diff) | |
download | rails-b588653ac0ce12b8caf448b3a08cb099db8ac356.tar.gz rails-b588653ac0ce12b8caf448b3a08cb099db8ac356.tar.bz2 rails-b588653ac0ce12b8caf448b3a08cb099db8ac356.zip |
Merge pull request #22988 from y-yagi/match_environment_variable_name_and_error_message
match the environment variable name that actually checking and error message
-rw-r--r-- | activerecord/lib/active_record/tasks/database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb index 6a9af5d1b4..8f52e9068a 100644 --- a/activerecord/lib/active_record/tasks/database_tasks.rb +++ b/activerecord/lib/active_record/tasks/database_tasks.rb @@ -43,7 +43,7 @@ module ActiveRecord LOCAL_HOSTS = ['127.0.0.1', 'localhost'] def check_protected_environments! - unless ENV['DISABLE_DATABASE_internal_metadata'] + unless ENV['DISABLE_DATABASE_ENVIRONMENT_CHECK'] current = ActiveRecord::Migrator.current_environment stored = ActiveRecord::Migrator.last_stored_environment |