2009/4/7 MarkMT <[email protected]>: > I just ran into this string length issue while trying to figure out > why a record I had created was silently failing to save (is this > documented someplace? - could have saved me a lot of time if I'd known > about the default). > > I tried adding :length => 128 and autoupgrading, but when I access the > table I get a mysql error "Data too long for column 'item_description' > at row 1", which sounds like it's having a problem with an existing > record whose string attribute has a length well below 50. Can someone > suggest what I'm doing wrong here, or what the right way is to adapt > my table to accommodate longer string lengths?
I would use a migration that executes ALTER TABLE directly. Auto upgrade is conservative and thus not really useful in certain situations that are possibly destructive. -- MK --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
