Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 8193bb7c29492116b9baba33bbb69b2628eb264a 1 parent 09191d5
Piotr Sarnacki drogus authored
2  activerecord/lib/active_record/railties/databases.rake
@@ -326,7 +326,7 @@ db_namespace = namespace :db do
326 326 ActiveRecord::Schema.verbose = false
327 327 db_namespace["schema:load"].invoke
328 328 ensure
329   - ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Rails.env])
  329 + ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[DatabaseTasks.env])
330 330 end
331 331 end
332 332

0 comments on commit 8193bb7

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