Quoting eugenio <[email protected]>:
> i noticed that rails create signed int(11) for id fields (i'm using
> mysql, i don't know if it acts like this with different databases).
> i think that unsigned is better for primary keys (and foreign keys).
> Is there an easy way to indicate that in a migration?
> 
This comes up occassionally.  The current answer is no.  My quess is that not
all supported databases support unsigned.  There is a way to create an
unsigned int column (that I've forgotten) but it isn't carried over to the
test database.  So you can used unsigned ints, just cant' test the upper half
of the values.

Jeffrey

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=.


Reply via email to