Update docs

This commit is contained in:
Billy Chan 2022-07-13 13:07:05 +08:00
parent d54ee23dd3
commit c949a33678
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -39,6 +39,10 @@ cargo run -- generate entity -u postgres://sea:sea@localhost/bakery -s public -o
```sh
cargo run -- migrate init
```
- Generate a new migration file
```sh
cargo run -- migrate generate --migration-name NAME_OF_MIGRATION
```
- Apply all pending migrations
```sh
cargo run -- migrate