schemaVersion

fun schemaVersion(schemaVersion: Long): S

Sets the schema version of the Realm. This must be equal to or higher than the schema version of the existing Realm file, if any. If the schema version is higher than the already existing Realm, a migration is needed.