I have added new array attribute to the RLMObject and
public class Student: RLMObject {
dynamic var id = 0
dynamic var name = \"\"
dynamic var re
You have to incremented your schemaVersion
and provide a migrationBlock
on your RLMRealmConfiguration
. In there you can migrate tables. But you don't need that in your specific case here. The addition of properties can be handled automatically. You'll still need an empty block.
let config = RLMRealmConfiguration.defaultConfiguration()
config.schemaVersion = 1
config.migrationBlock = { (migration, oldSchemaVersion) in
// nothing to do
}
RLMRealmConfiguration.setDefaultConfiguration(config)