migrate relations