Clever! This would be handy to mention in the docs/website. -Kevin
On May 27, 1:46 pm, Jonathan Stott <[email protected]> wrote: > 1. Enum Type > > I'm not sure about this. It might be possible via subclassing though, > as suggested. > > 2. unsigned smallint > > property :little_counter, Integer, :min => 0, :max => 65535 > > DataMapper automigrates to use the smallest column typeit can, if a > min and max are specified. If the minimum is >= 0, it makes an > UNSIGNED column, and the max, determines the size needed to use. > DataMapper does its best to map the properties you specify onto the > data-store, but you need to give it some clues. > > Regards > Jon -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
