Add migration instructions
This commit is contained in:
parent
8af2a70f00
commit
8465c4ecd6
5
migrations/how_to_do_migration.md
Normal file
5
migrations/how_to_do_migration.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
## How to do a migration
|
||||||
|
- Create `.env` to the root folder
|
||||||
|
- Add the database url to the `.env` file:
|
||||||
|
`DATABASE_URL=postgres://db_user:password@server_url:PORT/db_name`
|
||||||
|
- Run `npm run migrate up`
|
Loading…
Reference in New Issue
Block a user