DEV Community

Discussion on: How to Run Ecto Migrations on Production

Collapse
atyborska93 profile image
Angelika Tyborska

Thank you for this! Saved me a lot of time.

In case somebody is looking for a way to rollback the last migration, just like I was, you need to pass those options to Ecto.Migrator:

Ecto.Migrator.run(MyApp.Repo, path, :down, step: 1)
Enter fullscreen mode Exit fullscreen mode