Release v0.4.0
Added
-
Fields may be declared with
serialize: trueorserialize: <serializeable-class>, where<serializeable-class>
may beArray(Arraystored as YAML) orHash(Hashstored as YAML), (ArrayorHashor any scalar value stored as JSON)
or any custom serializable class.
This invokesActiveSupport'sserializemacro for that field, passing the serializable class, if given.Note: when
serialize:is used, anydefault:should be given in a matching Ruby type--for example,[]or{}or{ 'currency' => 'USD' }--in
which case the serializeable class will be used to determine the serialized default value and that will be set as the SQL default.
Fixed
- Sqlite now correctly infers the PRIMARY KEY so it won't attempt to add that index again.