afloyd / mongo-migrate

MIT License
159 stars 81 forks source link

Error on muliple next() calls #20

Open jbrechtel opened 9 years ago

jbrechtel commented 9 years ago

It would be great if the migrator would error when a migration calls next() multiple times. Presently calling next() multiple times from within a migration will result in that migration being recorded in the migrations collection multiple times.

afloyd commented 9 years ago

Yea that probably would be a good feature to add. Unfortunately I don't have the time to work on this project right now