Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. test:
  2. prepared_statements: false
  3.  
  4. PG::ProtocolViolation: ERROR: bind message supplies 2 parameters, but prepared statement "a24" requires 1
  5.  
  6. /database?prepared_statements=false
  7.  
  8. configure :production, :development, :test do
  9. db = URI.parse(ENV['DATABASE_URL']
  10.  
  11. ActiveRecord::Base.establish_connection(
  12. :adapter => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
  13. :host => db.host,
  14. :username => db.user,
  15. :password => db.password,
  16. :database => db.path[1..-1],
  17. :encoding => 'utf8',
  18. :prepared_statements => false,
  19. )
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement