Skip to content

Instantly share code, notes, and snippets.

@kmkrn
Last active December 31, 2017 01:06
Show Gist options
  • Save kmkrn/7a7bc578fe176ba1e5c89233b85da0c6 to your computer and use it in GitHub Desktop.
Save kmkrn/7a7bc578fe176ba1e5c89233b85da0c6 to your computer and use it in GitHub Desktop.
Realm migration
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