balmasi / migrate-mongoose

A node based migration framework for mongoose supporting ES6 migrations
MIT License
264 stars 84 forks source link

Pass additional run args onto migration functions #59

Closed lucatk closed 3 years ago

lucatk commented 4 years ago

I had a use case, where I required additional arguments that were available when calling Migrator#run programmatically inside the migrating (up/down) functions. I think this is a valid requirement for quite a few cases, therefore this might fit into the main repo.