I want to do Lightweight migration in core-data. I am adding an attribute to an entity which is working well.
But I want after this particular migration that entity's data (all objects contained in that entity's table) to be deleted.
I gone through this question, but this method is not looking good as I wanted to keep separate the logic of each migration which will be required in future.
I gave a thought to one way that directly rename that entity but not specifying the rename Identifier
so that Core data will process it as deletion of an entity and addition of a new entity, but this thing will not become permanent solution for every similar case in future migrations.
Is there any way if I can delete data directly by going through UI of xcdatamodeld
or is there any other method?