Module: DataMapper::Adapters::Sqlite3Adapter::Migration::ClassMethods

Included in:
DataMapper::Adapters::Sqlite3Adapter
Defined in:
lib/dm-core/adapters/sqlite3_adapter.rb

Instance Method Summary collapse

Instance Method Details

#type_mapDataMapper::TypeMap

TypeMap for SQLite 3 databases.

TODO: move to dm-more/dm-migrations

Returns:



92
93
94
95
96
97
# File 'lib/dm-core/adapters/sqlite3_adapter.rb', line 92

def type_map
  @type_map ||= TypeMap.new(super) do |tm|
    tm.map(Integer).to('INTEGER')
    tm.map(Class).to('VARCHAR')
  end
end