This is a great idea for RAD on applications with factory data, etc. I more typically mock the backend for JS applications, and then build when that’s coalesced completely. But I’ve had times in the past where I’ve spent a lot of time iterating over db structures a dozen times a day. TBH, I always thought refresh rebuilt from scratch because I’m super fussy about my migrations. Definitely a useful feature.
Maybe I’m missing something obvious, but does this migration also blank or drop the migrations table itself? I assume it does. That would seem the simplest solution.