Module: DataMapper::Migrations::MysqlAdapter::ClassMethods

Defined in:
lib/dm-core/migrations.rb

Instance Method Summary collapse

Instance Method Details

#type_mapHash

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.



567
568
569
570
571
572
# File 'lib/dm-core/migrations.rb', line 567

def type_map
  @type_map ||= super.merge(
    DateTime => { :primitive => 'DATETIME' },
    Time     => { :primitive => 'DATETIME' }
  ).freeze
end