Is there good way to retrieve migration version number?
I need to implement a method in a model which behave differently on and beyond a specific migration version.
For Rails 5.x/6.x:
puts ApplicationRecord.connection.migration_context.current_version puts ApplicationRecord.connection.migration_context.get_all_versions