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

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

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