Module: DataMapper::PgTypes::ClassMethods
- Defined in:
- lib/dm-pg-types.rb
Instance Method Summary collapse
-
#type_map ⇒ Hash
private
Types for PostgreSQL databases.
Instance Method Details
#type_map ⇒ Hash
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.
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 |