class ActiveRecord::MigrationContext

def current_version # :nodoc:

:nodoc:
def current_version # :nodoc:
  get_all_versions.max || 0
rescue ActiveRecord::NoDatabaseError
end