提交 3ba176d0 编写于 作者: Y yuuji.yaginuma

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
上级 37dadb0d
......@@ -43,7 +43,7 @@ module DatabaseTasks
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册