March Docs

Forge.GenMigration

Forge.GenMigration — forge bastion.gen.migration <name>

Generates a blank Depot migration file in priv/depot/migrations/.

Usage: forge bastion.gen.migration create_users forge bastion.gen.migration add_email_to_users

The generated file contains empty up/down stubs and a version timestamp. Edit the up() function to define schema changes using Depot.Migration helpers.

Functions

fnmainmain(_cap_console : Cap(IO.Console), _cap_clock : Cap(IO.Clock), _cap_filewrite : Cap(IO.FileWrite), _cap_process : Cap(IO.Process))#
fnrunrun(args)#