you are right. but because they're use the same memory i thought it would be correct to let the application to use all of them if needed. i think it's just a mysql habit i got. thanks.
On 23 Nov, 17:13, Matt Jones <[email protected]> wrote: > 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=.

