datamapper / dm-types

DataMapper plugin providing extra data types
http://datamapper.org/
MIT License
55 stars 80 forks source link

UUID missing from migration type map #79

Closed tpitale closed 9 years ago

tpitale commented 9 years ago

This may be a problem for some, but I guess we shouldn't be using UUID type anyway. But, if you get an error from dm-do-adapter or dm-postgres-adapter dm-do-adapter.rb:201:inproperty_schema_hash': undefined method merge' for nil:NilClass it's because of a custom type in dm-types.

For me it happened for a UUID property, but was fine for Enum. :shrugs:

tpitale commented 9 years ago

This is related to the type map not knowing what it should dump as. To fix use dump_as option on your properties. There also fixes in the works to infer dump type from parent property type.