If a migration was missing and the directory contained only valid migration files, FindMigrations would panic with an index out of range error instead of returning an error indicating a missing migration.
I think this was missed in #65 because the test data included a non-migration file that added an extra element to the foundMigrations slice.
If a migration was missing and the directory contained only valid migration files,
FindMigrations
would panic with an index out of range error instead of returning an error indicating a missing migration.I think this was missed in #65 because the test data included a non-migration file that added an extra element to the
foundMigrations
slice.