On Nov 22, 11:44 am, eugenio <[email protected]> wrote:
> 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?

There's not a way to do so, as far as I know. Somewhat offtopic, why
do you believe that unsigned is preferable? Yes, it has twice as much
range, but if your DB has 2 billion objects in it and needs more -
you've likely got other problems...

--

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