1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

refer to rails command instead of rake in environment error

It has been to use an overall rails command in ea4f0e2bab, in order to unify.
This commit is contained in:
yuuji.yaginuma 2016-01-19 16:01:00 +09:00
parent be3d4c6ef6
commit 0e835960c7

View file

@ -145,7 +145,7 @@ module ActiveRecord
class NoEnvironmentInSchemaError < MigrationError #:nodoc:
def initialize
msg = "Environment data not found in the schema. To resolve this issue, run: \n\n\tbin/rake db:environment:set"
msg = "Environment data not found in the schema. To resolve this issue, run: \n\n\tbin/rails db:environment:set"
if defined?(Rails.env)
super("#{msg} RAILS_ENV=#{::Rails.env}")
else
@ -168,7 +168,7 @@ module ActiveRecord
msg = "You are attempting to modify a database that was last run in `#{ stored }` environment.\n"
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/rake db:environment:set"
msg << "\tbin/rails db:environment:set"
if defined?(Rails.env)
super("#{msg} RAILS_ENV=#{::Rails.env}")
else