The test did not catch this because the migration in the generator migration folder is named incorrectly: it will not be the last migration generated and as such the test just checks that the previous migration was handled (which it is).
I also added a test that ensures that future migrations are named correctly: They must have a unique number prefix. This test fails when the renaming is undone since the prefix 10 is used two times.
The test did not catch this because the migration in the generator migration folder is named incorrectly: it will not be the last migration generated and as such the test just checks that the previous migration was handled (which it is).
I also added a test that ensures that future migrations are named correctly: They must have a unique number prefix. This test fails when the renaming is undone since the prefix 10 is used two times.