January 2019
Intermediate to advanced
520 pages
14h 32m
English
This command creates a migrations folder, where you can store migrations using the following command:
diesel migration generate <name>
This command creates a migration called <name> and stores it in the migrations folder. For example, if you set the name of the created migration to create_tables, you will see in the following structure in the migrations folder:
migrations/└── 2018-11-22-192300_create_tables/ ├── up.sql └── down.sql
For every migration, the generate command creates a folder and a pair of files:
All migrations are handwritten. Add all the necessary statements for the migrations yourself. For our example, we need the ...
Read now
Unlock full access