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:
parent
be3d4c6ef6
commit
0e835960c7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue