module DataMapper::Migrations::PostgresAdapter::ClassMethods
Public Instance Methods
type_map()
click to toggle source
Types for PostgreSQL databases.
@return [Hash] types for PostgreSQL databases.
@api private
Calls superclass method
# File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 145 def type_map precision = Property::Numeric::DEFAULT_PRECISION scale = Property::Decimal::DEFAULT_SCALE @type_map ||= super.merge( Property::Binary => { :primitive => 'BYTEA' }, BigDecimal => { :primitive => 'NUMERIC', :precision => precision, :scale => scale }, Float => { :primitive => 'DOUBLE PRECISION' } ).freeze end