class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::TypeMapInitializer

Public Instance Methods

register_enum_type(row) click to toggle source

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

# 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