Skip to content

Instantly share code, notes, and snippets.

@kmkrn
Created December 31, 2017 13:24
Show Gist options
  • Save kmkrn/2b0d1a6bcb29831c9af5b899cd42cdee to your computer and use it in GitHub Desktop.
Save kmkrn/2b0d1a6bcb29831c9af5b899cd42cdee to your computer and use it in GitHub Desktop.
Realm migration example
let config = Realm.Configuration(
schemaVersion: 1,
migrationBlock: { migration, oldSchemaVersion in
print("migration succeeded")
})
Realm.Configuration.defaultConfiguration = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment