Module: ActiveRecord::PostgresEnum::PostgreSQLAdapter::ColumnDumperExt

Defined in:
lib/active_record/postgres_enum/postgresql_adapter.rb

Overview

Instance Method Summary collapse

Instance Method Details

#prepare_column_options(column) ⇒ Object



19
20
21
22
23
# File 'lib/active_record/postgres_enum/postgresql_adapter.rb', line 19

def prepare_column_options(column)
  spec = super
  spec[:enum_name] = column.sql_type.inspect if column.type == :enum
  spec
end