
76: Safe Ecto Migrations with David Bernheisel
About this episode
We talk with host David Bernheisel about his Safe Ecto Migrations guide that was recently released. Intended as a resource for the community, it’s a 4-part series covering how Ecto migrations work, running migrations on production, provides a set of common-task recipes and strategies for migrating data in addition to DB structure. We discuss ideas around migrations like avoiding table locks on production, how to safely add DB check constraints, separating data migrations from structure changes, painful learning experiences and much more!
Show Notes online - http://podcast.thinkingelixir.com/76
Elixir Community News
- https://github.com/elixir-nx/nx/pull/558 – Implement hooks and tokens for Nx
- https://twitter.com/josevalim/status/1463239485685129216 – José Valim's explanation and excitement for the Nx PR
- https://twitter.com/chris_mccord/status/1462851686352015361 – Chris McCord teased a fully accessible Tailwind UI styled dropdown component along with something he's working on.
- https://twitter.com/josevalim/status/1463605416861081602 – José shares what Philip Sampaio is doing with R&D towards precompiled NIFs
- https://twitter.com/philipsampaio/status/1463602239558270980 – Philip Sampaio is working on precompiled NIFs using Rustler
- https://www.empex.co/mtn – Empex Mountain Conference - Held in Salt Lake City, Utah on May 6th 2022 - CFP is open
- https://www.twitch.tv/josevalim – Advent of Code is getting started. Jose Valim will be live-coding solutions using Elixir on Twitch.
Do you have some Elixir news to share? Tell us at @ThinkingElixir or email at [email protected]
Discussion Resources
- https://github.com/fly-apps/safe-ecto-migrations
- https://fly.io/phoenix-files/safe-ecto-migrations/
- https://fly.io/phoenix-files/
- https://elixirmix.com/68 – ElixirMix - Contributing to the Elixir Community with David Bernheisel & Cory Schmitt
- https://elixirmix.com/92 – ElixirMix - Managing Change with Ecto with David Bernheisel
Guest Information
- https://twitter.com/bernheisel – on Twitter
- https://github.com/dbernheisel – on Github
- https://bernheisel.com/blog – Blog
Find us online
- Message the show - @ThinkingElixir
- Email the show - [email protected]
- Mark Ericksen - @brainlid
- David Bernheisel - @bernheisel
- Cade Ward - @cadebward
Sponsored By:
More from Thinking Elixir Podcast
The final episode of Thinking Elixir after six incredible years of weekly episodes! We send things off in style with a packed news segment covering Phoenix LiveView 1.2's new colocated CSS powered by…
Elixir v1.20 has officially landed, marking a huge milestone as the language is now officially a gradually typed language, type checking every single line of code without requiring developer annotatio…
Mark shares a bittersweet housekeeping update — the Thinking Elixir Podcast is winding down, with the final episode airing June 23rd, 2026, closing the book on over six years of weekly shows. On the n…
Security takes center stage this week as the EEF's Jonatan Männchen highlights that atom exhaustion accounts for roughly one tenth of all CVEs in the BEAM ecosystem and Sobelow can help catch it befor…
News includes Elixir 1.20.0-rc.6 arriving as likely the final release candidate before v1.20.0 ships, completing a ~15-week roadmap and delivering full type inference across applications and dependenc…