Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use em_postgresql on Heroku

  • Loading branch information...
commit 3e3f643e6c6cb2bce6ec1e3eaec111db63e7170f 1 parent c6a23bd
David Jones authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/application.rb
2  config/application.rb
View
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.