Module: DataMapper::Adapters::PostgresAdapter::Migration::ClassMethods
- Included in:
- DataMapper::Adapters::PostgresAdapter
- Defined in:
- lib/gems/dm-core-0.9.9/lib/dm-core/adapters/postgres_adapter.rb
Instance Method Summary collapse
-
#type_map ⇒ DataMapper::TypeMap
TypeMap for PostgreSQL databases.
Instance Method Details
#type_map ⇒ DataMapper::TypeMap
TypeMap for PostgreSQL databases.
TODO: move to dm-more/dm-migrations
174 175 176 177 178 179 180 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/postgres_adapter.rb', line 174 def type_map @type_map ||= TypeMap.new(super) do |tm| tm.map(DateTime).to('TIMESTAMP') tm.map(Integer).to('INT4') tm.map(Float).to('FLOAT8') end end |