diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-10 13:36:26 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-10 13:36:26 +0530 |
commit | c8177e99aee24cab8e77644e6bb780e43cf7b511 (patch) | |
tree | 11aa3e405464d749dd1e8f9f85e3359b8155f154 /activerecord | |
parent | 87c2c070c4cf1b62ac364c53496a2da000fbf9d6 (diff) | |
download | rails-c8177e99aee24cab8e77644e6bb780e43cf7b511.tar.gz rails-c8177e99aee24cab8e77644e6bb780e43cf7b511.tar.bz2 rails-c8177e99aee24cab8e77644e6bb780e43cf7b511.zip |
Cleanup message shown while running destructive action against protected database.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index a5c2985132..99a79024ad 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -156,8 +156,8 @@ module ActiveRecord class ProtectedEnvironmentError < ActiveRecordError #:nodoc: 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 = "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 |