On Oct 29, 2009, at 4:26 PM, Brett Nelson wrote:
> > In 0.63 I saw this occurring with > :text with :limit > :boolean with :default > :decimal with :precision and :scale > :timestamp > > On edge, of these, the only one I see still happening is > :text with :limit > > it ignores a setting like :limit=>1000000 > and appears to get set to 16777215 > This is actually expected - MySQL doesn't actually let you set a limit that size on a text column (a regular TEXT only supports 64k anyways). The Rails schema stuff detects the > 64k limit and switches to an appropriate type (mediumtext or longtext). What annoyed me was that setting the limit to the exact value returned for a mediumtext (the 16.7 million) gets me a longtext field instead. Might be a Rails bug, though. --Matt Jones --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
