Is there a good way to retrieve the latest migration version number?
I need to implement a method in a model which behaves differently on and beyond a specific migration version.
I found assume_migrated_upto_version in connection adapter is retrieving version from database but can’t find others.
Rails
5.2and higher:Rails up to
5.1.7: