Not exactly obvious, but here's some code I use  that's
a partial solution - uses varchar(40), varchar(32) though:

  property   :sha1,  String,   :required => true, :length => (40..40)
  property   :md5,   String,   :required => true, :length => (32..32)

the length validation phrase requires an exact match - 40, 32.

On Wed, Aug 18, 2010 at 3:57 PM, Don French <[email protected]> wrote:
> Is there a way to get smaller datatypes. I have several columns that
> should be anywhere fro one byte to char(6). I hate to use a varchar
> for these. Am I missing some way to specify these types?
>
> Don French
>
> --
> 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.
>
>

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