Sha256: 9f809c17a0097aa43c493433c2815b37401d58f2079be01935920d603cd3ceed

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

require "active_record"

module Kanal
  module Plugins
    module ActiveRecord
      module Overriden
        #
        # NOTE: NOT USED
        #
        class VersionSuffixMigrator < ::ActiveRecord::Migrator
          def initialize(direction, migrations, schema_migration, target_version = nil, version_suffix: nil)
            super(direction, migrations, schema_migration, target_version)

            @verson_suffix = version_suffix
          end

          def record_version_state_after_migrating(version)
            result = super

            "#{result}_#{@version_suffix}"
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kanal-plugins-active_record-0.2.1 lib/kanal/plugins/active_record/overriden/version_suffix_migrator.rb
kanal-plugins-active_record-0.2.0 lib/kanal/plugins/active_record/overriden/version_suffix_migrator.rb