Thinking Elixir Podcast cover image

22: Running migrations in production with Patryk Bąk

Thinking Elixir Podcast

00:00

What if You Write a Schema Inside of Your Data Migration?

Migrations are like a snapshot of what the database is at, how your database is. What if you wrote a schema inside of your migration? But like the state of your Schema was also in the migration. If you referenced thatscheme instead of your currentSchema, then it would look how your migration expects it to look at the time.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app