Skip to content

Instantly share code, notes, and snippets.

@flxw
Created August 11, 2013 16:32
Show Gist options
  • Save flxw/6205582 to your computer and use it in GitHub Desktop.
Save flxw/6205582 to your computer and use it in GitHub Desktop.
var conn = new Mongo(),
exercises
db = conn.getDB("educatopiadev")
exercises = db.exercises.find()
exercises.forEach(function (exercise) {
db.exercises.update({_id: exercise._id}, { $set: { revisions: [] }});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment