All interview questions
Why can rolling back application code fail after a database migration?
AdvancedAnswer
Older code may depend on a schema that a migration removed or changed. A code rollback does not automatically restore data compatibility.
Explanation
Use staged, backward-compatible schema changes and delay destructive cleanup.
Example
Add a new column, migrate readers and writers, then remove the old column later.