Process Flow - Rolling back migrations
Start: Current DB state
Identify last migration applied
Run rollback command
Undo changes from last migration
Update migration history
DB state restored to previous version
End
This flow shows how the system finds the last migration applied, undoes its changes, updates the history, and restores the database to the previous state.