diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-19 16:01:00 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-19 17:15:59 +0900 |
commit | 0e835960c78f81bf0a78463d4bee2915a9b75de3 (patch) | |
tree | 4c9e9dd35c2e262ac2445d875a891c21e207c0d6 /activerecord/lib/active_record | |
parent | be3d4c6ef65b3cda3242c19fd756ef3869f2deaf (diff) | |
download | rails-0e835960c78f81bf0a78463d4bee2915a9b75de3.tar.gz rails-0e835960c78f81bf0a78463d4bee2915a9b75de3.tar.bz2 rails-0e835960c78f81bf0a78463d4bee2915a9b75de3.zip |
refer to rails command instead of rake in environment error
It has been to use an overall rails command in ea4f0e2baba8653b03fba154357842933cf7b778, in order to unify.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index f5b29c7f2e..4419a7b1e7 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -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 |