Sha256: c6d53f16cfe2ce730689c16df23219debb389c96240437b6ec83b460ea290cbf

Contents?: true

Size: 347 Bytes

Versions: 5

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Switchman
  module ActiveRecord
    module PendingMigrationConnection
      module ClassMethods
        def current_role
          ::ActiveRecord::Base.current_role
        end

        def current_switchman_shard
          ::ActiveRecord::Base.current_switchman_shard
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
switchman-3.6.7 lib/switchman/active_record/pending_migration_connection.rb
switchman-3.6.6 lib/switchman/active_record/pending_migration_connection.rb
switchman-3.6.5 lib/switchman/active_record/pending_migration_connection.rb
switchman-3.6.3 lib/switchman/active_record/pending_migration_connection.rb
switchman-3.6.2 lib/switchman/active_record/pending_migration_connection.rb