Permalink
Browse files

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

  • Loading branch information...
1 parent add318c commit 6553df05bd4514fe3278c34ec7111aa3f5cab8bd @drogus drogus committed Jun 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
@@ -324,7 +324,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 6553df0

Please sign in to comment.