Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. require 'active_record'
  2. require 'pg'
  3. require 'sinatra'
  4.  
  5. ActiveRecord::Base.establish_connection(
  6. adapter: 'postgresql',
  7. host: 'localhost',
  8. username: 'postgres',
  9. password: 'postgres',
  10. database: 'testdb'
  11. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement