I have a ChangeUnit for deleting one collection in my database. The migration has already been done and such change will no longer be required. I am wondering if I can delete the class and get rid of obsolete code.
I know change log will be saved in the db but I do not know if that would cause any complication (change log persisted in db, class removed from code). What do you think?
I tested this locally but still wanted to hear thoughts on this.
In general that is not a recommended practice. ChangeUnits should be inmutables.
There are two potential problems that come to my mind that you should be aware of:
As long as you have those potential issues under control, you should be fine, although, I want to emphasise that this is not a recommended practice