To successfully connect to the two databases you must create .env
files, one for the dev database and the other for the test database, with the format PGDATABASE=database_name
- Create
.env.development
and.env.test
files - Add the following to each file
PGDATABASE=database_name
(Note: database name for.env.test
will be the same but with_test
at the end) - You are now connected to the database!