Intergenerational consequences of migration