I have an entity in my datamodel with a string attribute that is currently optional, and I\'d like to convert this to a required attribute with a default value of the empty stri
You can do it manually. In your model class, override awakeFromInsert and set your strings to empty string
Swift:
override func awakeFromInsert() { super.awakeFromInsert() self.stringProperty = "" }
Objective-C
- (void) awakeFromInsert { [super awakeFromInsert]; self.stringProperty = @""; }