Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/postgresql_extensions/adapter_extensions.rb

Instance Method Summary collapse

Instance Method Details

#simplified_type_with_additional_types(field_type) ⇒ Object



753
754
755
756
757
758
759
760
761
762
763
764
# File 'lib/active_record/postgresql_extensions/adapter_extensions.rb', line 753

def simplified_type_with_additional_types(field_type)
  case field_type
    when 'geometry'
      :geometry
    when 'geography'
      :geography
    when 'tsvector'
      :tsvector
    else
      simplified_type_without_additional_types(field_type)
  end
end