Unable to connect to postgresql database after upgrading to Yosemite 10.10
问题 After updating to Yosemite 10.10 I cannot connect to my postgresql database. I run the rails console and try and get the first user but get this error... > ➜ game_golf git:(master) ✗ rails c > Loading development environment (Rails 4.1.4) > [1] pry(main)> User.first > PG::ConnectionBad: could not connect to server: Connection refused > Is the server running on host "localhost" (::1) and accepting > TCP/IP connections on port 5432? > could not connect to server: Connection refused > Is the