Sha256: 916426dd84d7a546f389765192d0173af393afe71a644465df46826c0b14f7bb

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

module ActiveRecord
  module PGEnum
    module ColumnDumper
      def column_spec(column)
        if column.type == :enum
          return ["column", [column.sql_type.inspect, prepare_column_options(column)]]
        end

        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-pg_enum-0.3.0 lib/active_record/pg_enum/4.2/column_dumper.rb