Advertisement
Guest User

Untitled

a guest
Apr 27th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def conn
  2. if ENV["RACK_ENV"] == "production"
  3. PG.connect(
  4. dbname: ENV["POSTGRES_DB"],
  5. host: ENV["POSTGRES_HOST"],
  6. password: ENV["POSTGRES_PASS"],
  7. user: ENV["POSTGRES_USER"]
  8. )
  9. else
  10. PG.connect(dbname: "portfolio")
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement