Sha256: 5d3e27187f4002433552b50d1167521519b53201caf39698e02da8cb3ac2d108

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
#
module EnumKit
  # :nodoc:
  #
  module ActiveRecordExtensions
    # :nodoc:
    #
    module ConnectionAdapters
      # :nodoc:
      #
      module PostgreSQL
        # :nodoc:
        #
        module ColumnDumper
          # :nodoc:
          #
          def prepare_column_options(column)
            spec = super
            spec[:enum_type] = column.sql_type.inspect if column.type == :enum
            spec
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enum_kit-0.3.1 lib/enum_kit/active_record_extensions/connection_adapters/postgresql/column_dumper.rb
enum_kit-0.3.0 lib/enum_kit/active_record_extensions/connection_adapters/postgresql/column_dumper.rb
enum_kit-0.2.3 lib/enum_kit/active_record_extensions/connection_adapters/postgresql/column_dumper.rb
enum_kit-0.2.2 lib/enum_kit/active_record_extensions/connection_adapters/postgresql/column_dumper.rb
enum_kit-0.2.1 lib/enum_kit/active_record_extensions/connection_adapters/postgresql/column_dumper.rb