Skip to content
Discussion options

You must be logged in to vote

if you are testing the migrations, then I assume you want to run them all for your test suite. if you are not testing the migrations, then I'd just use create_all() for your test suite's purposes.

As far a "rollup migration" you can do this also but you'd need to construct the migration code by hand, or otherwise run an autogenerate against a database which is updated to the target version for the rollup, removing all migration files above that version so that autogenerate thinks it's at the head (you can make a new migration directory for this kind of thing).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andre-qumulo
Comment options

Answer selected by andre-qumulo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants