migrate

abstract fun migrate(migrationContext: AutomaticSchemaMigration.MigrationContext)

Method called when the schema of the realm has changed.

The schema has automatically been migrated when this callback is triggered, but any data must be manually moved using the migration context.

Parameters

migrationContext

migration context giving access to the old and new realms.