Skip to content

Commit

Permalink
Use DatabaseTasks.env instead of Rails.env in databases.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Jun 14, 2013
1 parent 09191d5 commit 8193bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/railties/databases.rake
Expand Up @@ -326,7 +326,7 @@ db_namespace = namespace :db do
ActiveRecord::Schema.verbose = false ActiveRecord::Schema.verbose = false
db_namespace["schema:load"].invoke db_namespace["schema:load"].invoke
ensure ensure
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Rails.env]) ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[DatabaseTasks.env])
end end
end end


Expand Down

0 comments on commit 8193bb7

Please sign in to comment.