The existing Ruby PostgreSQL driver connected the app to a server that was listening only on a local socket. It probed the usual socket directories, including the temporary one in use, and then authenticated with trust auth as the OS user.
- What worked
- No database.yml change was required for the socket. Once commands ran from the project directory, migrations and tests reused that connection successfully.