Last updated
Last updated
This will add a new migration file base on the default migration stub. Migration stub contains the scaffolding of the migration file.
{{ varName }}
will be automatically replaced by the migration file name you enter in the input before you click the make button.
The dabase/migrations/
is the directory which our migration files will be stored. This is we called our local repository.
The migration file accepts:
mode: "NEW", "DROP", "CHANGE", "RENAMETABLE"
table: the target table
primary_key: the primary key of the table
up: Run the migrations
down: Reverse the migrations