lib/migration.js
function lookup(version, migrations) {
  var regex = RegExp('^' + version + '.*$');
  for (var m in migrations)
    if (migrations.hasOwnProperty(m) && m.match(regex)) return m;
  return null;
}
function lookup(version, migrations) {
  var regex = RegExp('^' + version + '.*$');
  for (var m in migrations)
    if (migrations.hasOwnProperty(m) && m.match(regex)) return m;
  return null;
}
function lookup ( version , migrations ) { var regex = RegExp ( '^' + version + '.*$' ) ; for ( var m in migrations ) if ( migrations . hasOwnProperty ( m ) && m . match ( regex ) ) return m ; return null ; }
We need to be able to look up migrations by their numeric identifier without concerning ourselves with the description.
We need to be able to look up migrations by their numeric identifier without concerning ourselves with the description .