diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2016-04-11 10:19:14 -0500 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2016-04-11 10:19:14 -0500 |
commit | 0c3cdf6c30c7a0a17c2a3a5049672402986bc1a7 (patch) | |
tree | f2f7649d2d681e5284fc3d00dec69abe60790bbe /activerecord/lib/active_record/migration.rb | |
parent | c9238500bd8c307fb8eebcd44d9f3ac2f3ab4a1f (diff) | |
parent | c8177e99aee24cab8e77644e6bb780e43cf7b511 (diff) | |
download | rails-0c3cdf6c30c7a0a17c2a3a5049672402986bc1a7.tar.gz rails-0c3cdf6c30c7a0a17c2a3a5049672402986bc1a7.tar.bz2 rails-0c3cdf6c30c7a0a17c2a3a5049672402986bc1a7.zip |
Merge pull request #24485 from prathamesh-sonpatki/protected_database_env_message
Cleanup message shown while running destructive action against protected database
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
-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 |