diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-09 13:32:26 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-09 13:37:40 +0900 |
commit | 3ba176d0a07728e9505609967b518d85129bff24 (patch) | |
tree | 6408f9888c8761d88e5ecf2b5b7069673c0aba4e /activerecord/lib | |
parent | 37dadb0dc93076d8c4343f52a29edc3adc45b6f1 (diff) | |
download | rails-3ba176d0a07728e9505609967b518d85129bff24.tar.gz rails-3ba176d0a07728e9505609967b518d85129bff24.tar.bz2 rails-3ba176d0a07728e9505609967b518d85129bff24.zip |
match the environment variable name that actually checking and error message
The error message has become a `DISABLE_DATABASE_ENVIRONMENT_CHECK`, modified to match the error message.
ref: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb#L161
Diffstat (limited to 'activerecord/lib')
-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 |