Sha256: a9e9d24224c3eb097517bad2733fdedae1f2b1494746682e51efdea05b4e34ae

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
#
module ActiveRecord
  # :nodoc:
  #
  module ConnectionAdapters
    # :nodoc:
    #
    module PostgreSQL
      # :nodoc:
      #
      module OID
        # :nodoc:
        #
        class Enum < Type::Value
          # @return [String] The PostgreSQL type for the enum.
          #
          attr_reader :name

          # :nodoc:
          #
          def initialize(options = {})
            @name = options.delete(:name).to_sym
            super
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enum_kit-0.1.0 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/enum.rb