Get name of current core data model
core-data, ios
Solution
You can ask your `NSManagedObjectModel` by sending `versionIdentifiers` to the receiver.
- (NSSet *)versionIdentifiers
The docu is here
Problem
I have made some changes to my `Core Data` model, and the we are handling the migration as described here: Lightweight Migration. That's not a problem. However, I want to make a couple of other updates to my data that are conditional on the current model version. How can I get the name of the current model version? I expected to see something like: ``` [[NSBundle mainBundle] currentDataModelName] ``` but I can't seem to find it. Can anyone help?