jtdaugherty/dbmigrations

Linear Migrations

ExternalReality opened this issue · 4 comments

For some projects I would like all migrations to be linear in that they always and only depend on the last migration. I have time to spend implementing this option. I would like to know if you have any thoughts on this.

Right now I don't think there is anything getting in the way of doing that, although certainly there is no explicit support for it. What sort of tool workflow do you have in mind? Would it be a matter of providing more assistance when generating new migration files, or would it be a deeper change than that?

Perhaps simply an optional environment variable and/or flag moo new --linear

Sounds good!

This has been implemented in master as of the recent merge.