Fix relationship migration.