Skipping painful migration with Core Data and move to the new data model
I'm spending a lot of time massaging core data into a new migration when I don't even care about the old data. Instead of dealing with the hassle of mapping models each time I change my data model, is there a way to just delete all existing data and jump to the new data model? Yep, just delete the store file and recreate it. I often (at least in development) have my code try an auto migration, and if that fails, blow away the store and start over: // storefile is an NSURL to the store file, mom is the NSManagedObjectModel NSError *err = nil; NSPersistentStoreCoordinator *psc = [[