mysql2
mysql2 copied to clipboard
Mysql2::Error: Data too long for column 'object' at row 1 error when trying to update Active Record
I have a table with a column of medium text type. For a specific record I am getting this error when I try to update the record(saving it did with the same values does not create an error). When I duplicate the record and set the value of med text value to an empty string there is no error. The size of records column is 69000 characters which is right above a standard text limit but this shouldn't be an issue since this is a med text type. When I manipulate the record from the db console I don't have a problem either.