A Simple Migration

To demonstrate a simple migration, let’s add the ability to attribute recipes to authors. To begin the versioning, the first thing we have to do is create a new managed object model (MOM) based on the first one. To do that, we select the existing model in Xcode and then choose Editor > Add Model Version.

Get Core Data in Swift now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.