Module: DataMapper::Adapters::PostgresAdapter::Migration::ClassMethods
- Included in:
- DataMapper::Adapters::PostgresAdapter
- Defined in:
- 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
175 176 177 178 179 180 181 |
# File 'lib/dm-core/adapters/postgres_adapter.rb', line 175 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 |