if(!revisions[i].up || typeof revisions[i].up !== 'function') return next('Malformed migration file for schema ' + i+1);