We are trying to implement a module in our app that requires knowledge of whether or not a specific class was updated. Think about a class that defines a migration logic and we need to know if one of these migrations been updated and reapply them when needed.
There are couple of potential options:
- Track if a file, where migrations defined, was changed.
- Track if the class itself was changed (if possible).
For #1, my question is how to the the file where a class was defined. We need that, because we already have classes loaded. For #2 - is it even possible. If yes, how?
Or, there might be completely different approach. Any through helpful.
Thanks,
