Closed siboulet closed 8 years ago
+1
The examples in the README are broken. @siboulet way works.
Hi, I just sent a PR to fix this issue https://github.com/afloyd/mongo-migrate/pull/53. Hopefully the original author will merge it soon. In the mean time, please upvote my PR to bring it to his attention.
Merged PR #53
It seems the examples are outdated, or perhaps its because I'm using the latest 1.2.0 with Mongo 2.x, but I have found the following to work:
It's no longer necessary to require mongodb in migrations.