Methods

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

     # File lib/dm-migrations/adapters/dm-postgres-adapter.rb, line 145
145:         def type_map
146:           precision = Property::Numeric.precision
147:           scale     = Property::Decimal.scale
148: 
149:           super.merge(
150:             Property::Binary => { :primitive => 'BYTEA'                                                      },
151:             BigDecimal       => { :primitive => 'NUMERIC',          :precision => precision, :scale => scale },
152:             Float            => { :primitive => 'DOUBLE PRECISION'                                           }
153:           ).freeze
154:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.