Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Core/Core/CorePersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ public class CorePersistence: CorePersistenceProtocol {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
let description = NSPersistentStoreDescription()
description.shouldInferMappingModelAutomatically = true
description.shouldMigrateStoreAutomatically = true
container.persistentStoreDescriptions = [description]

return container
}

Expand Down
5 changes: 5 additions & 0 deletions Course/Course/CoursePersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ public class CoursePersistence: CoursePersistenceProtocol {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
let description = NSPersistentStoreDescription()
description.shouldInferMappingModelAutomatically = true
description.shouldMigrateStoreAutomatically = true
container.persistentStoreDescriptions = [description]

return container
}

Expand Down
5 changes: 5 additions & 0 deletions Dashboard/Dashboard/DashboardPersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public class DashboardPersistence: DashboardPersistenceProtocol {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
let description = NSPersistentStoreDescription()
description.shouldInferMappingModelAutomatically = true
description.shouldMigrateStoreAutomatically = true
container.persistentStoreDescriptions = [description]

return container
}

Expand Down
5 changes: 5 additions & 0 deletions Discovery/Discovery/DiscoveryPersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public class DiscoveryPersistence: DiscoveryPersistenceProtocol {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
let description = NSPersistentStoreDescription()
description.shouldInferMappingModelAutomatically = true
description.shouldMigrateStoreAutomatically = true
container.persistentStoreDescriptions = [description]

return container
}

Expand Down