No Compromises · Joel Clermont and Aaron Saray
Have you ever built a strong case for something, only to realize later you were solving the wrong problem? In the latest episode of the No Compromises podcast, we discuss Aaron's surprising reversal on down migrations, a topic we've publicly discussed on this podcast. We walk through the original arguments for writing down migrations and deconstruct each one. (00:00) - The original case for down migrations (03:45) - Aaron changes his stance (05:15) - Why seeders beat rollbacks for local dev (10:30) - Rethinking the production rollback scenario (14:45) - Silly bit Keep your knowledge fresh, check out Mastering Laravel.
0:00JoelWelcome to No Compromises. A peek into the mind of two old web devs who have seen some things. This is Joel.
0:08AaronAnd this is Aaron. So, Joel, I've went on record and I've sat down in the podcast I believe, I've written blog posts about it, and everything about my strong support for down migrations in Laravel projects in a database layer.
0:30Here's a challenge for you, because I think you agreed with me. What were my points? What was the reason why you agreed with me? What was the point of that? Why did I support down migrations so strongly?
0:40JoelIs this a pop quiz, Aaron? Are you challenging me?
0:44AaronMaybe. Because you agreed with me so you must agree with that too.
0:47JoelDon't say past tense. I do agree with you.
0:51AaronOkay.
0:53JoelIn fact, I've gone on record pointing people to your article. So-
0:58AaronOkay.
1:00Joel... my takeaway from it was two things. Yeah, maybe there's a third, we'll see. But for development, when you want to switch feature branches and do this and that, sometimes it is nice to just back out one migration, switch a branch, apply it, back it out, and so on.
1:19So it's kind of like a local development experience. That's one thing.
1:22AaronYeah. And, you're right, that was both as a developer as well as my role, I'd later said, as a team lead or a manager.
1:30JoelOh, yeah.
1:32AaronBecause sometimes I was a developer and would move through multiple projects in different branches. Other times I had team doing that, and so my job was to check out each branch. Kind of move through them and approve all of them for that week's release.
1:42JoelYeah. So, you're probably bumping into it even more in that role than as a individual dev. The second thing, and maybe even a stronger reason, at least one that resonated with me. Is the sheer act of creating the down migration and testing it locally was almost like...