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 a69c4d1 commit a43f2b0Copy full SHA for a43f2b0
passKit/Controllers/CoreDataStack.swift
@@ -20,11 +20,11 @@ public class PersistenceController {
20
21
init(isUnitTest: Bool = false) {
22
self.container = NSPersistentContainer(name: Self.modelName, managedObjectModel: .sharedModel)
23
-
+ let description = container.persistentStoreDescriptions.first
24
+ description?.shouldMigrateStoreAutomatically = false
25
+ description?.shouldInferMappingModelAutomatically = false
26
if isUnitTest {
- let description = NSPersistentStoreDescription()
- description.url = URL(fileURLWithPath: "/dev/null")
27
- container.persistentStoreDescriptions = [description]
+ description?.url = URL(fileURLWithPath: "/dev/null")
28
}
29
30
0 commit comments