fixed bug where a new migration would be added for creating a module even if the migration already existed, e.g. by having been created as a prior dependency