rent
ReferenceCommand line

rent migrate reset

rent migrate reset removes application tables and views, then replays every checksummed migration in order. It is intentionally limited to an explicitly confirmed workflow.

Rebuild a local database

rent migrate reset --database-url "sqlite://local.db" --yes
Reset database

Removed 4 database objects
Applied 20260910022456_create_users (1 statement)
Applied 20260910022512_create_posts (1 statement)
Complete: Database rebuilt from migration history.

This is useful for proving that a new developer or test environment can be constructed from migration history alone.

Choose another migration directory

rent migrate reset --directory services/social/migrations --yes
Reset database

Removed 7 database objects
Applied 20260910022456_create_users (1 statement)
Applied 20260910022512_create_posts (1 statement)
Applied 20260910022630_create_comments (1 statement)
Complete: Database rebuilt from migration history.

Confirmation is mandatory

rent migrate reset
Error: reset removes every application table; rerun with --yes to confirm

Do not use this command against a database whose application data must be preserved. Use normal forward migrations for shared and production databases.

On this page