def next_version(bump_type=nil)
      local_max = local_versions.max || Version.new('0')
      applied_max = applied_versions.max || Version.new('0')
      max_version  = [local_max, applied_max].max
      max_version.next(bump_type)
    end
def next_version(bump_type=nil)
      local_max = local_versions.max || Version.new('0')
      applied_max = applied_versions.max || Version.new('0')
      max_version  = [local_max, applied_max].max
      max_version.next(bump_type)
    end
A version with an incremented version number that would be
 applied after the latest (local or applied) migration.
 @param [Symbol, nil] bump_type Which semantic version to bump
 @option bump_type [Symbol] :build Bump the build version
 @option bump_type [Symbol] :patch Bump the patch version, set build to 0
 @option bump_type [Symbol] :minor Bump the minor version, set patch and build to 0
 @option bump_type [Symbol] :major Bump the major version, set minor, patch, and build to 0
 @option bump_type [nil] nil Default, bumps patch, sets build to 0
 @return [Version] The initialized, bumped version