Skip to content
Browse files

Use DatabaseTasks.env instead of Rails.env in databases.rake

  • Loading branch information...
1 parent 11424a4 commit 46246378f8866fc8a025a541bbd130a6e90fec50 @drogus drogus committed Jun 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
View
2 activerecord/lib/active_record/railties/databases.rake
@@ -326,7 +326,7 @@ db_namespace = namespace :db do
ActiveRecord::Schema.verbose = false
db_namespace["schema:load"].invoke
ensure
- ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Rails.env])
+ ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[DatabaseTasks.env])
end
end

0 comments on commit 4624637

Please sign in to comment.
Something went wrong with that request. Please try again.