migrations
migrations copied to clipboard
Add a check that applied migrations have not been edited
trafficstars
A large customer had a problem: colleagues applied a migration, then edited it and expected it to apply again but it didn't. As a result, there was an incident of prod failure. To prevent this from happening, we need to add a check that migrations have not been edited. A simple solution is to add the hash sum of the file to the space with the migrations applied. And check the hash sum when trying to reapply the migration.