How can I get the migration to run before the app starts to run the code?
问题 I'm using realm.io in a swift app. This is the first time I've had to run a migration since I have an app in production. I changed one of the models and added a couple of extra fields to it. I followed the example in the documentation and then referenced the github repo's example when that didn't work. I assumed that it was probably more complex then what the example in the documentation was letting on. Here's what I have in my appdelegate.swift file: func application(application: