title: Best way to simulate default value for TEXT column using Ruby on Rails?
body: <p>I'm using a TEXT column in my MySQL database. As the documentation says, it is not possible to set a default value for these columns.</p>
  
  <p>I'm currently using the following code to simulate this behavior:</p>
  
  <pre><code>class Data
    before_save lambda {text_column ||= ''}
  end
  </code></pre>
  
  <p>Is there any better, more railis/active_record way to do this?</p>