Skip to content

Commit

Permalink
Merge pull request #25003 from kangkyu/missing_line
Browse files Browse the repository at this point in the history
Add missing space and newline for clarity
  • Loading branch information
rafaelfranca committed May 14, 2016
2 parents b6429b8 + 238c77d commit b981369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/lib/active_record/migration.rb
Expand Up @@ -166,13 +166,13 @@ def initialize(env = "production")
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
Expand Down

0 comments on commit b981369

Please sign in to comment.