api.js
function (scope, callback) {
    var executeDown = load('down');

    if (typeof scope === 'string') {
      this.internals.migrationMode = scope;
      this.internals.matching = scope;
    } else if (typeof scope === 'function') {
      callback = scope;
    }

    this.internals.argv.count = Number.MAX_VALUE;
    return Promise.fromCallback(
      function (callback) {
        executeDown(this.internals, this.config, callback);
      }.bind(this)
    ).asCallback(callback);
  }
function (scope, callback) {
    var executeDown = load('down');

    if (typeof scope === 'string') {
      this.internals.migrationMode = scope;
      this.internals.matching = scope;
    } else if (typeof scope === 'function') {
      callback = scope;
    }

    this.internals.argv.count = Number.MAX_VALUE;
    return Promise.fromCallback(
      function (callback) {
        executeDown(this.internals, this.config, callback);
      }.bind(this)
    ).asCallback(callback);
  }
function ( scope , callback ) { var executeDown = load ( 'down' ) ; if ( typeof scope === 'string' ) { this . internals . migrationMode = scope ; this . internals . matching = scope ; } else if ( typeof scope === 'function' ) { callback = scope ; } this . internals . argv . count = Number . MAX_VALUE ; return Promise . fromCallback ( function ( callback ) { executeDown ( this . internals , this . config , callback ) ; } . bind ( this ) ) . asCallback ( callback ) ; }
Executes down for all currently migrated migrations.
Executes down for all currently migrated migrations .