123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::ProtectedEnvironmentError

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ActiveRecordError, StandardError
Instance Chain:
self, ActiveRecordError, StandardError
Inherits: ActiveRecord::ActiveRecordError
Defined in: activerecord/lib/active_record/migration.rb

Class Method Summary

Constructor Details

.new(env = "production") ⇒ ProtectedEnvironmentError

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 196

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