     }
 
     let coordinator = NSPersistentStoreCoordinator(managedObjectModel: model)
-    let storeURL = DataController.applicationDocumentsDirectory.URLByAppendingPathComponent(persistentStoreName)
-    let options = [
-      NSMigratePersistentStoresAutomaticallyOption: true,
-      NSInferMappingModelAutomaticallyOption: true
-    ]
-
-    try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: storeURL, options: options)
-
+    try coordinator.addPersistentStoreWithType(NSSQLiteStoreType,
+                                               configuration: nil,
+                                               URL: persistentStoreURL,
+                                               options: persistentStoreOptions)
     persistentStoreCoordinator = coordinator
 
     let context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)

    _mainQueueManagedObjectContext = context
  }

}

    }
  }()

}

// MARK: Private

private extension DataController {

  private static func initializeCoreDataStack() throws {
    assert(NSThread.isMainThread(), "\(#function) must be executed on main thread")
