Skip to content

Commit

Permalink
Update Migrate.swift (#106)
Browse files Browse the repository at this point in the history
nextModel always not equal destinationModel, so migration always fails..
when change equality to entityVersionHashesByName, it is working fine
  • Loading branch information
yasserislam authored and jessesquires committed Dec 30, 2016
1 parent 5aa4774 commit 32003cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Migrate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 32003cb

Please # to comment.