Work in progress
- Setup dependencies:
make vendor
- Create a schema:
CREATE SCHEMA app;
- Setup environment variables (in
.env
):DATABASE_URL=postgres://[email protected]:5432/postgres?sslmode=disable DATABASE_SCHEMA=app
- Apply database schema migrations:
./migrate/migrate up
To create new migration:
# ./migrate/migrate new <migration name>
./migrate/migrate new add user table