Module: ActiveRecord::PostgresEnum::ColumnMethods

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

Instance Method Summary collapse

Instance Method Details

#enum(name, enum_type:, **options) ⇒ Object

Enables ‘t.enum :my_field, enum_type: :my_enum_name` on migrations



7
8
9
# File 'lib/active_record/postgres_enum/column_methods.rb', line 7

def enum(name, enum_type:, **options)
  column(name, enum_type, **options)
end