Delete database migrations using python scripts

Delete database migrations using python scripts :

Key points:

1. When coding, we must manually delete the migration file in the project every time we want to erase migrations. 

2. It raises the chance that, instead of removing the migration file, other files in the project will be deleted. 

3. So, using Python, I wrote code to erase all migrations in a single script. It really helpful to delete all the migrations without any mistake.

Comments

Popular Posts