Kevin,

> As a follow-up, how does one make an Integer column not_null default
> 0?  Looks like not_null for text columns is with :length => 1..999 vs.
> 0..
>
> I don't want to validate it's existence on setting, I just want to
> force the value to be 0 after its been created.

  property :number, Integer, :min => 0, :max => 65535, :required =>
true, :default => 0

--

Dan

-- 
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.

Reply via email to