- Install mysql or use a docker instance
cargo install diesel_cli
- in error case run the next command
cargo install diesel_cli --no-default-features --features mysql
cargo run
Create tables
diesel migration generate create_tweets
diesel migration generate create_likes
diesel setup
Create migrations
diesel migration run
Rollback
diesel migration revert