Global Variable

NSMigratePersistentStoresAutomaticallyOption

Key to automatically attempt to migrate versioned stores.

Declaration

NSString *const NSMigratePersistentStoresAutomaticallyOption;

Discussion

The corresponding value is an NSNumber object. If the boolValue of the number is YES and if the version hash information for the added store is determined to be incompatible with the model for the coordinator, Core Data will attempt to locate the source and mapping models in the application bundles, and perform a migration.