Module: DataMapper::Migrations::MysqlAdapter::ClassMethods
- Defined in:
- lib/dm-migrations/adapters/dm-mysql-adapter.rb
Instance Method Summary collapse
-
#type_map ⇒ Hash
private
Types for MySQL 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 MySQL databases.
273 274 275 276 277 278 |
# File 'lib/dm-migrations/adapters/dm-mysql-adapter.rb', line 273 def type_map @type_map ||= super.merge( DateTime => { :primitive => 'DATETIME' }, Time => { :primitive => 'DATETIME' } ).freeze end |