title: Rails: Data too long for column
body: <p>I entered 5kb text in string field(VARCHAR(255)) and received this error:</p>
  
  <pre><code>Mysql2::Error: Data too long for column 'title' at row 1: INSERT INTO `posts`....
  </code></pre>
  
  <p>What is the best way to fix this problem?<br>
  Should i cut this text to 255 in before_save in model?<br>
  Or fix params[:that_field] in controller?<br>
  Any other solutions?</p>