From 32003cb3b145369c3f988b5030f07f5ca02f067e Mon Sep 17 00:00:00 2001 From: yasserislam Date: Fri, 30 Dec 2016 17:58:36 +0200 Subject: [PATCH] Update Migrate.swift (#106) nextModel always not equal destinationModel, so migration always fails.. when change equality to entityVersionHashesByName, it is working fine --- Source/Migrate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Migrate.swift b/Source/Migrate.swift index 010cd1b3..779ab707 100644 --- a/Source/Migrate.swift +++ b/Source/Migrate.swift @@ -145,7 +145,7 @@ internal func buildMigrationMappingSteps(bundle: Bundle, migrationSteps.append(nextStep) nextModel = nextStep.destination - } while nextModel != destinationModel + } while nextModel.entityVersionHashesByName != destinationModel.entityVersionHashesByName return migrationSteps }