## Testing database migrations across isolated worktrees

Run coding tasks in parallel branches with isolated database instances to verify schema migrations.

Inspect new pull requests or branch tasks for database migrations and code changes. Spin up an isolated ephemeral database instance in the terminal and execute schema migrations. Run the test suite against the live instance. Collect logs, migration diffs, and test outputs. Request user approval before tearing down resources, dropping databases, or posting summary comments back to the repository.

Approvals:

- Tearing down ephemeral database instances and other provisioned resources
- Dropping sandbox databases
- Posting summary comments back to the repository

Source: BotBento use case https://botbento.com/usecases/testing-database-migrations-across-isolated-worktrees/ (CC BY 4.0).
