Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::TypeMapInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/postgres_enum/extensions.rb

Instance Method Summary collapse

Instance Method Details

#register_enum_type(row) ⇒ Object

We need to know the column name, and the default implementation discards it



18
19
20
# File 'lib/active_record/postgres_enum/extensions.rb', line 18

def register_enum_type(row)
  register row['oid'], OID::Enum.new(enum_name: row['typname'])
end