From f62db591a13709eba96c2eeb8b574779cf57c6ba Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 8 Jul 2018 18:02:53 -0400 Subject: [PATCH] clearer PG.connect --- app/models/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/job.rb b/app/models/job.rb index 2aa3774..50a5458 100644 --- a/app/models/job.rb +++ b/app/models/job.rb @@ -1,6 +1,6 @@ class Job # connect to postgres - DB = PG.connect(host: "localhost", port: 5432, dbname: 'contacts') + DB = PG.connect({:host => "localhost", :port => 5432, :dbname => 'contacts'}) def self.all results = DB.exec("SELECT * FROM jobs;")