Sha256: e6848be5cfdee90ca03f44be976dde56c51094454338afd40381f11b16b62ef1

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

require_relative '../models/migration_version'
require_relative 'service_20240210161248'
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
            Service20240210161248.new(options: options).migrate!
          end
        end

        private

        def migration_version
          Models::MigrationVersion.new.version
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dsu-3.0.0.beta.0 lib/dsu/migration/factory.rb