method
new
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::ProtectedEnvironmentError
new(env = "production")public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 170
def initialize(env = "production")
msg = +"You are attempting to run a destructive action against your '#{env}' database.\n"
msg << "If you are sure you want to continue, run the same command with the environment variable:\n"
msg << "DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
super(msg)
end