aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
diff options
context:
space:
mode:
authorKang-Kyu Lee <kangkyu1111@gmail.com>2016-05-12 20:56:55 -0700
committerKang-Kyu Lee <kangkyu1111@gmail.com>2016-05-12 20:59:38 -0700
commit238c77dedf3a9de27f8e902ad3dcfdc3480d95bc (patch)
tree03ebce6af7e0b86adea7381dcc1ee6c493765bd0 /activerecord/lib/active_record/migration.rb
parent0991c4c6fc0c04764f34c6b65a42adce190440c3 (diff)
downloadrails-238c77dedf3a9de27f8e902ad3dcfdc3480d95bc.tar.gz
rails-238c77dedf3a9de27f8e902ad3dcfdc3480d95bc.tar.bz2
rails-238c77dedf3a9de27f8e902ad3dcfdc3480d95bc.zip
Add missing space and newline for clarity
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
-rw-r--r--activerecord/lib/active_record/migration.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index f30861b4d0..81fe053fe1 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -166,13 +166,13 @@ module ActiveRecord
class EnvironmentMismatchError < ActiveRecordError
def initialize(current: nil, stored: nil)
msg = "You are attempting to modify a database that was last run in `#{ stored }` environment.\n"
- msg << "You are running in `#{ current }` environment."
+ msg << "You are running in `#{ current }` environment. "
msg << "If you are sure you want to continue, first set the environment using:\n\n"
msg << "\tbin/rails db:environment:set"
if defined?(Rails.env)
- super("#{msg} RAILS_ENV=#{::Rails.env}")
+ super("#{msg} RAILS_ENV=#{::Rails.env}\n\n")
else
- super(msg)
+ super("#{msg}\n\n")
end
end
end