afloyd / mongo-migrate

MIT License
159 stars 79 forks source link

Error on muliple next() calls #20

Open jbrechtel opened 10 years ago

jbrechtel commented 10 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 10 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