lib/set.js
function positionOfMigration(migrations, filename) {
	for (var i = 0; i < migrations.length; ++i) {
		if (migrations[i].title == filename) {
			return i;
		}
	}
	return -1;
}
function positionOfMigration(migrations, filename) {
	for (var i = 0; i < migrations.length; ++i) {
		if (migrations[i].title == filename) {
			return i;
		}
	}
	return -1;
}
function positionOfMigration ( migrations , filename ) { for ( var i = 0 ; i < migrations . length ; ++ i ) { if ( migrations [ i ] . title == filename ) { return i ; } } return - 1 ; }
Get index of given migration in list of migrations

@api private
Get index of given migration in list of migrations