Module: DataMapper::PgTypes::ClassMethods

Defined in:
lib/dm-pg-types.rb

Instance Method Summary collapse

Instance Method Details

#type_mapHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Types for PostgreSQL databases.

Returns:

  • (Hash)

    types for PostgreSQL databases.



43
44
45
46
47
48
49
# File 'lib/dm-pg-types.rb', line 43

def type_map
  super.merge(
              Property::HStore => {:primitive => 'HSTORE'},
              Property::DecimalArray => {:primitive => "NUMERIC"},
              Property::StringArray => {:primitive => "VARCHAR"}
              ).freeze
end