tasks/mongo-migrate.js
function down(){
        var key = (grunt.option('name') || ""),
            label = ( key || "EMPTY"),
            cmd = (migrateBinPath + " down " + key).trim();

        grunt.log.write('Running migration "DOWN" [' + label + ']...').ok();
        run(cmd);
    }
function down(){
        var key = (grunt.option('name') || ""),
            label = ( key || "EMPTY"),
            cmd = (migrateBinPath + " down " + key).trim();

        grunt.log.write('Running migration "DOWN" [' + label + ']...').ok();
        run(cmd);
    }
function down ( ) { var key = ( grunt . option ( 'name' ) || "" ) , label = ( key || "EMPTY" ) , cmd = ( migrateBinPath + " down " + key ) . trim ( ) ; grunt . log . write ( 'Running migration "DOWN" [' + label + ']...' ) . ok ( ) ; run ( cmd ) ; }
Migrate DOWN to either the latest migration file or to a migration name passed in as an argument.
Migrate DOWN to either the latest migration file or to a migration name passed in as an argument .