There is a new community resource available on writing “Safe Ecto Migrations”. When we get a migration wrong, it can lock up your production servers with table locks!
This 4 part guide walks through:
- Understanding Ecto migrations and what Postgres is actually doing
Setting up your
mix releaseproject for running migrations
- Recipes for safely making many common changes
- How to safely make batch data changes
- Includes a Github repo with samples!
A valuable new resource for the community!