seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

Ability to rollback all migrations with single command #208

Open softerboy opened 4 years ago

softerboy commented 4 years ago

For now migrate-mongo down command rollbacks only single (last) migration. Would be useful if we can rollback all migrations with single command, for example: migrate-mongo reset, or migrate-mongo clear, or something like

Doing that we can clean our database before CI/CD integrations for example

rmartinez-rincones commented 4 years ago

in fact it would usefull if it could down to a selected migration