Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test:
- prepared_statements: false
- PG::ProtocolViolation: ERROR: bind message supplies 2 parameters, but prepared statement "a24" requires 1
- /database?prepared_statements=false
- configure :production, :development, :test do
- db = URI.parse(ENV['DATABASE_URL']
- ActiveRecord::Base.establish_connection(
- :adapter => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
- :host => db.host,
- :username => db.user,
- :password => db.password,
- :database => db.path[1..-1],
- :encoding => 'utf8',
- :prepared_statements => false,
- )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement