ReferenceCommand line
rent migrate create
Schema migrations can be derived from RSL declarations. Data migrations contain application-specific SQL, so Rent creates an explicit draft that you author and review.
Create a backfill
rent migrate create --name backfill_post_summariesCreated ./rent/migrations/20260910022456_backfill_post_summaries.sql
Next: Author the SQL, then run `rent migrate seal`.Edit the generated file:
UPDATE posts
SET summary = substring(body FROM 1 FOR 120)
WHERE summary IS NULL;The automatic UTC timestamp places the backfill after existing migrations. Use --migration-version only when an
external release process owns the ordering convention.
The draft changes rent.sum when it is created. Editing the SQL deliberately makes validation fail until you seal
the finished contents; this prevents an edited file from being mistaken for a reviewed migration.
Use another directory
rent migrate create --name backfill_accounts --directory services/accounts/rent/migrationsThe directory follows the same rent.toml override rules as the other migration commands.
Continue with rent migrate seal.