Inherit from the Migrator constructor's prototype, so we can add the correct then method.
Migrator
then
Assign the newly extended Migrator constructor to the client object.
Inherit from the
Migratorconstructor's prototype, so we can add the correctthenmethod.