Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle missing schemas in ensure_up!
We noticed that `c:Migrator.ensure_up!/0` does not check for existence of schemas before calling `Ecto.Migrator.migrations/3`, which unfortunately terminates with a rather cryptic error. This PR fixes that by explicitly checking schema existence before calling `migrations/3`. Opted for only checking (instead of creating it) to keep `ensure_up!/0`'s behaviour "read-only".
- Loading branch information