Module: ActiveRecord::PGEnum::PrepareColumnOptions
- Defined in:
- lib/active_record/pg_enum/4.1/prepare_column_options.rb,
lib/active_record/pg_enum/5.0/prepare_column_options.rb
Instance Method Summary collapse
Instance Method Details
#prepare_column_options(column) ⇒ Object
9 10 11 12 13 |
# File 'lib/active_record/pg_enum/4.1/prepare_column_options.rb', line 9 def (column, types) spec = super spec[:as] = column.sql_type.inspect if column.type == :enum spec end |