aerie
aerie copied to clipboard
Add Workflow check that all ups and downs end with marking the migration
Occasionally, a mark_migration_applied or a mark_migration_rolled_back statement is missing from a migration. This proposed workflow would validate that all up.sqls end with a mark_migration_applied('folder number'); and all down.sqls end with a mark_migration_rolled_back('folder number');
It would be especially preferred if it also checked that the relevant applied_migrations.sql was updated to include the line mark_migration_applied('folder number');.