aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAndy Lindeman <alindeman@gmail.com>2012-12-20 17:41:52 -0500
committerAndy Lindeman <alindeman@gmail.com>2012-12-21 17:41:39 -0500
commit6b692ee37c08f1abee8c9b8a12f9b7f1234afb00 (patch)
tree484676c70293c6ed7aa071b383593d035a43a190 /activerecord/lib
parent33b3fa67c49715c98b37c737ec83937168aad859 (diff)
downloadrails-6b692ee37c08f1abee8c9b8a12f9b7f1234afb00.tar.gz
rails-6b692ee37c08f1abee8c9b8a12f9b7f1234afb00.tar.bz2
rails-6b692ee37c08f1abee8c9b8a12f9b7f1234afb00.zip
Correctly shows RAILS_ENV=development even when ENV['RAILS_ENV'] is not set (e.g., in Pow)
* Fixes #8025
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/migration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 806b367c6b..273af32237 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -32,7 +32,7 @@ module ActiveRecord
class PendingMigrationError < ActiveRecordError#:nodoc:
def initialize
- super("Migrations are pending; run 'rake db:migrate RAILS_ENV=#{ENV['RAILS_ENV']}' to resolve this issue.")
+ super("Migrations are pending; run 'rake db:migrate RAILS_ENV=#{Rails.env}' to resolve this issue.")
end
end