Sha256: 54366c37d9d6fe4dcd9674d6c26becf21b830cd4dc181a776ed92c10538c17fe
Contents?: true
Size: 644 Bytes
Versions: 8
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require_relative '../models/migration_version' require_relative 'service_20230613121411' require_relative 'version' module Dsu module Migration class Factory class << self def migrate_if!(options: {}) version = options.fetch(:version, migration_version) if version == 20230613121411 # rubocop:disable Style/NumericLiterals Service20230613121411.new(options: options).migrate! end end private def migration_version @migration_version ||= Models::MigrationVersion.new.version end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems