I'm trying to figure out how to make my app to be able to migrate from one data model version to another.
I read whole bunch of resources online, and figured out that using Magical Record can be really useful, especially MR_coordinatorWithAutoMigratingSqliteStoreNamed method.
Everything looked good until I started to do some testing, when I noticed the app crash under following conditions.
so this is my data model versions...everything works just fine when I work with document version or document4 version...but when I pick document3 version I have this crash:
any kind of help is highly appreciated!
When you use migrations, you have to manually create your data model from the .momd bundles. So for your managedObjectModel accessor method that gets created in your application delegate you need to change it slightly from what gets implemented by default:
There's a great explanation of this here.