Module: Repertoire::Faceting::PostgreSQLColumn

Included in:
ActiveRecord::ConnectionAdapters::PostgreSQLColumn
Defined in:
lib/repertoire-faceting/adapters/postgresql_adapter.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#simplified_type(field_type) ⇒ Object

TODO. still not clear how ActiveRecord adapters support adding custom SQL data types…

feels like a monkey-patch, but there's no documented way to accomplish this simple task


9
10
11
12
13
14
15
16
17
# File 'lib/repertoire-faceting/adapters/postgresql_adapter.rb', line 9

def simplified_type(field_type)
  case field_type
    # Bitset signature type
  when 'signature'
    :string
  else
    super
  end
end