Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 8193bb7c29492116b9baba33bbb69b2628eb264a 1 parent 09191d5
Piotr Sarnacki drogus authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/railties/databases.rake
2  activerecord/lib/active_record/railties/databases.rake
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.