RLMMigration Class Reference
RLMMigration is the object passed into a user defined RLMMigrationBlock when updating the version of an RLMRealm instance.
This object provides access to the RLMSchema current to this migration.
Altering Objects during a Migration
@property (nonatomic, readonly) RLMSchema *newSchema
Enumerates objects of a given type in this Realm, providing both the old and new versions of each object. Objects properties can be accessed using keyed subscripting.
- (void)enumerateObjects:(NSString *)className block:(RLMObjectMigrationBlock)block
The name of the RLMObject subclass to retrieve on eg.
Warning: All objects returned are of a type specific to the current migration and should not be casted to className. Instead you should access them as RLMObjects and use keyed subscripting to access properties.