Module: DataMapper::PostgresTypes::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#type_mapObject



44
45
46
47
48
49
50
51
52
# File 'lib/dm-postgres-types.rb', line 44

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