Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/active_record/connection_adapter_with_uuid.rb

Instance Method Summary collapse

Instance Method Details

#simplified_type_with_uuid(field_type) ⇒ Object

Adds the uuid type for the column.



23
24
25
# File 'lib/active_record/connection_adapter_with_uuid.rb', line 23

def simplified_type_with_uuid(field_type)
  field_type == 'uuid' ? :uuid : simplified_type_without_uuid(field_type)
end