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



772
773
774
775
776
777
778
779
780
781
782
783
# File 'lib/active_record/postgresql_extensions/adapter_extensions.rb', line 772

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