Ecto ↔ PostgreSQL: Ensuring Safe Rollback of Schema‑Change Migrations
Goal: Assess whether Ecto can guarantee that a migration’s down function restores the database to its pre‑migration state after a schema change Ecto runs each migration inside a single transaction, but the generated down callback does not automatically undo data modifications that occur before the schema alteration. Certain schema operations—such as changing