On 22 Nov., 10:05, Pawel S. [email protected]
I am trying to connect to postgres database from RoR. I have username
and password in database.yml, but when trying to connect, I get the
No such file or directory - /tmp/.s.PGSQL.5432
Why is it? I would also prefer to connect by TCP connection instead of
UNIX socket, how can I configure this?
I remember having the same problem, but I don’t remember
the details anymore. Anyway, here’s my current database.yml:
Similar for test and development, no other settings.
(Especially, I think there was a “port” setting that needed to