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 the O’Reilly learning platform.

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