Refactor DBConfig

This commit is contained in:
Omar Roth 2019-05-21 09:00:35 -05:00
parent 8b50c8515f
commit a675c64c2d
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
2 changed files with 18 additions and 14 deletions

View file

@ -33,11 +33,11 @@ HMAC_KEY = CONFIG.hmac_key || Random::Secure.hex(32)
PG_URL = URI.new(
scheme: "postgres",
user: CONFIG.db[:user],
password: CONFIG.db[:password],
host: CONFIG.db[:host],
port: CONFIG.db[:port],
path: CONFIG.db[:dbname],
user: CONFIG.db.user,
password: CONFIG.db.password,
host: CONFIG.db.host,
port: CONFIG.db.port,
path: CONFIG.db.dbname,
)
PG_DB = DB.open PG_URL