Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmmm, if we’re willing to accept a dependency on git than it might be interesting to write a `mix ecto.migration.rerun` that rolled back any migrations that are untracked or dirty according to git, then re-ran them. That would simplify a pain point I encounter when I’m iterating on a migration because sometimes I rollback too far accidentally and finding the right argument to rollback feels like a chore. The nice thing is that could be prototypes outside of ecto quite easily.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: