This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('mongoose'); | |
var async = require('async'); | |
var db = 'mongodb://localhost/myawesomeapp'; | |
mongoose.connect(db, function (err) { | |
if (err) { throw err; } | |
async.series([_dropCollection, _renameCollection], function (err, result) { | |
if (err) { throw err; } |
NewerOlder