Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def conn
- if ENV["RACK_ENV"] == "production"
- PG.connect(
- dbname: ENV["POSTGRES_DB"],
- host: ENV["POSTGRES_HOST"],
- password: ENV["POSTGRES_PASS"],
- user: ENV["POSTGRES_USER"]
- )
- else
- PG.connect(dbname: "portfolio")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement