Created
December 31, 2017 13:24
-
-
Save kmkrn/2b0d1a6bcb29831c9af5b899cd42cdee to your computer and use it in GitHub Desktop.
Realm migration example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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