check if modules have migrations before calling phinx