aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-05-14 01:33:50 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-05-14 01:33:50 -0300
commitb981369ab60472fbb63896906137b7008fe05ca7 (patch)
treea77bd9d0abae5e781e04283318f90f8ff07410aa
parentb6429b871ff8b73ebd10076ead6ed2c1f651da86 (diff)
parent238c77dedf3a9de27f8e902ad3dcfdc3480d95bc (diff)
downloadrails-b981369ab60472fbb63896906137b7008fe05ca7.tar.gz
rails-b981369ab60472fbb63896906137b7008fe05ca7.tar.bz2
rails-b981369ab60472fbb63896906137b7008fe05ca7.zip
Merge pull request #25003 from kangkyu/missing_line
Add missing space and newline for clarity
-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