cargo install just
This application uses seaql/sea-orm for Database connections and conpsumption.
You must install sea-orm-cli
if you want to create new migrations.
Use the following command to install SeaORM CLI
cargo install sea-orm-cli
To run any migration or database related command, make sure DATABASE_URL
environment variable is present, either inline via Terminal or via .env
file.
cargo run --bin cli database migrate
To learn more about SeaORM you can read on their tests and examples, a recommended Migrations example is the Bakery Chain schema.