We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d97a0 commit 46c1274Copy full SHA for 46c1274
README.md
@@ -119,13 +119,17 @@ do {
119
}
120
````
121
122
-#### Checking migrations
+#### Performing migrations
123
124
````swift
125
let bundle = NSBundle(identifier: "com.MyApp.MyModelFramework")!
126
let model = CoreDataModel(name: "MyModel", bundle: bundle)
127
if model.needsMigration {
128
- // do migration
+ do {
129
+ try migrate(model)
130
+ } catch {
131
+ print("Failed to migrate model: \(error)")
132
+ }
133
134
135
0 commit comments