I am trying to perform the first easy migration of CoreData. I read two guides on easy migration. Both add code to the CoreDataStack class, modifying variables like NSPersistentStoreCoordinator, and add:
let mOptions = [NSMigratePersistentStoresAutomaticallyOption: true, NSInferMappingModelAutomaticallyOption: true]
My problem is that I have a well-functioning application using CoreData, but I don't have this class or anything like that. My problem is , why do these projects assume that I have this class, and can I achieve my easy migration without it? If not, how to add it?
Additional information if necessary
In September, I created an application using CoreData. This was my first time using CoreData, and I followed this Ray Wenderlich tutorial . It did a great job, I finished the application and it is now in the store. Now I would like to make some changes to the application, which involve the new CoreData attributes and several new objects. I read that I need to configure a new version of the model.
I found the Ray Wenderlich guide , but it uses this CoreDataStack.swift file, which I don't have:

It's hard to say that I am installing CoreData using my manual, and it does not include this file! Then I move on to migration, and they suggest that I have.
I went looking for another lightweight migration method, found this alternative, and it also refers to code that I never embedded in my CoreData:
lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator? = {
So, I read the manuals and understood 90% of the lessons. I just need someone to take a look at this original CoreData tutorial and tell me where, if I don't have a CoreData class, I would add some light code, like this:
let mOptions = [NSMigratePersistentStoresAutomaticallyOption: true, NSInferMappingModelAutomaticallyOption: true]