api.js
function (migrationName, scope, callback) {
    var executeCreateMigration = load('create-migration');
    if (typeof scope === 'function') {
      callback = scope;
    } else if (scope) {
      this.internals.migrationMode = scope;
      this.internals.matching = scope;
    }

    this.internals.argv._.push(migrationName);
    return Promise.fromCallback(
      function (callback) {
        executeCreateMigration(this.internals, this.config, callback);
      }.bind(this)
    ).asCallback(callback);
  }
function (migrationName, scope, callback) {
    var executeCreateMigration = load('create-migration');
    if (typeof scope === 'function') {
      callback = scope;
    } else if (scope) {
      this.internals.migrationMode = scope;
      this.internals.matching = scope;
    }

    this.internals.argv._.push(migrationName);
    return Promise.fromCallback(
      function (callback) {
        executeCreateMigration(this.internals, this.config, callback);
      }.bind(this)
    ).asCallback(callback);
  }
function ( migrationName , scope , callback ) { var executeCreateMigration = load ( 'create-migration' ) ; if ( typeof scope === 'function' ) { callback = scope ; } else if ( scope ) { this . internals . migrationMode = scope ; this . internals . matching = scope ; } this . internals . argv . _ . push ( migrationName ) ; return Promise . fromCallback ( function ( callback ) { executeCreateMigration ( this . internals , this . config , callback ) ; } . bind ( this ) ) . asCallback ( callback ) ; }
Creates a correctly formatted migration
Creates a correctly formatted migration