aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman@gmail.com>2016-04-11 10:19:14 -0500
committerRichard Schneeman <richard.schneeman@gmail.com>2016-04-11 10:19:14 -0500
commit0c3cdf6c30c7a0a17c2a3a5049672402986bc1a7 (patch)
treef2f7649d2d681e5284fc3d00dec69abe60790bbe /activerecord/lib/active_record/migration.rb
parentc9238500bd8c307fb8eebcd44d9f3ac2f3ab4a1f (diff)
parentc8177e99aee24cab8e77644e6bb780e43cf7b511 (diff)
downloadrails-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.rb4
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