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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.