fixed migation foreign key issues