command

ridu migrate create

ridu migrate create --name <kebab-name> [--accept-renames | --transform <name>] [--allow-destructive]

Plan and write one reviewable immutable migration artifact without connecting to a database.

@param --name
Required lowercase kebab-case migration name.
@param --accept-renames
PostgreSQL or MongoDB: accept every unambiguous detected rename without an interactive prompt.
@param --transform
SQLite or MongoDB: bind a named compiled data transform to the immutable artifact.
@param --allow-destructive
Record destructive changes confirmed by the selected adapter planner after explicit review.

PostgreSQL and MongoDB rename candidates require confirmation or --accept-renames. SQLite rejects --accept-renames and uses --transform instead for stored canonical JSON rewrites. MongoDB transforms run through the compiled project migration driver. Destructive approval does not bypass semantic transitions Ridu cannot safely automate.

Example

shell
ridu migrate create --name rename-post-title
git diff -- migrations/