J'ai construit un grattoir et il ne semble pas aimer ma longueur de description. J'ai changé la colonne en varchar (500) mais pas de dés. Je pense que je dois convertir en texte, mais je ne suis pas sûr comment. Cela a-t-il un sens dans mon cas? Merci!mysql- Mysql2 :: Erreur: Données trop longues pour la colonne 'description' à la ligne 1
erreur-
Mysql2::Error: Data too long for column 'description' at row 1: INSERT INTO
sammiches
(country
,created_at
,description
,image
,name
,updated_at
) VALUES ('Italy', '2013-05-03 01:10:08', 'In Italy, panino is the word for a sandwich made from bread other than sliced bread, in which case Italians call it a tramezzino or porco. Examples of bread types used are ciabatta, rosetta and baguette. The bread is cut horizontally and filled with deli ingredients such as salami, ham, cheese, mortadella, or other food, and sometimes served warm after having been pressed by a warming grill. In the United States, United Kingdom and Canada, the term panini has been adopted to refer to a pressed and toasted sandwich; there is widespread availability and use of sandwich presses, often known as \"panini presses\" or \"toasted sandwich makers.\"', '/wiki/File:Italian_Sandwich.jpeg', 'Panini', '2013-05-03 01:10:08') (ActiveRecord::StatementInvalid)
je l'ai changé au texte et il semble fonctionner, désolé pour la question prématurée. – DynastySS