Added handling of ho,hm,mo,mm relations to migrations