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

Defined in:
lib/dm-migrations/adapters/dm-mysql-adapter.rb

Instance Method Summary (collapse)

Instance Method Details

- (Hash) type_map

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.

Returns:

  • (Hash)

    types for MySQL databases.



289
290
291
292
293
294
# File 'lib/dm-migrations/adapters/dm-mysql-adapter.rb', line 289

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