a guest Apr 27th, 2016 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand