Permalink
Browse files

use em_postgresql on Heroku

  • Loading branch information...
1 parent c6a23bd commit 3e3f643e6c6cb2bce6ec1e3eaec111db63e7170f @djones committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/application.rb
View
2 config/application.rb
@@ -7,7 +7,7 @@
db = URI.parse(ENV['DATABASE_URL'] || 'http://localhost')
if db.scheme == 'postgres' # Heroku environment
ActiveRecord::Base.establish_connection(
- :adapter => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
+ :adapter => db.scheme == 'postgres' ? 'em_postgresql' : db.scheme,
:host => db.host,
:username => db.user,
:password => db.password,

0 comments on commit 3e3f643

Please sign in to comment.