Mysql2::Error: Data too long for column 'help_ru', Rails 4 and Mysql database -


i have model have help_ru column set text datatype.

problem: tried update help_ru column activeadmin panel, received error message mysql2::error: data long column 'help_ru' .

i tried add text has 170 000 characters spaces. takes aprox. 40kb when saved in text document.

i using tinymce text includes styling information. please,see small example of it:

<p style=\"margin-bottom: 0.14in; line-height: 115%;\">sludinājuma izvieto&scaron;ana</p>\r\n<p style=\"margin-bottom: 0.14in; line-height: 115%;\">bezmaksas sludinājumu apraksts:</p>\r\n<p style=\"margin-bottom: 0.14in; line-height: 115%;\">1. lietotājam ir tiesības ievietot vienu bezmaksas sludinājumu individualki.eu sadaļā.</p>\r\n<p style=\"margin-bottom: 0.14in; line-height: 115%;\">2. lietotājs var ievietot vienu bezmaksas sludinājumu vienu reizi 14 (četrpadsmit) dienās. pēc 14 (četrpadsmit) dienām sludinājums tiks automātiski dzēsts.</p>\r\n<p style=\"margin-bottom: 0.14in; line-height: 115%;\">maksas sludinājumi :</p>\r\n<p style=\"margin-bottom: 0.14in; line-height: 115%;\">3. maksas sludinājumus var: pievienot, 

i double checked help_ru column's datatype , it text not string (like in similair questions found in stackoverflow.).

i using mysql database.

why problem persists if don't have special restrictions , text datatype large?

thanks


Comments