title: Ruby on Rails - MySql POINT type
body: <p>I have a model with one POINT typed attribute. (MySql)
  How can I set model attribute through active record?</p>
  
  <p>Im looking for something like I did in yii2:</p>
  
  <pre><code>$coordStr = 'POINT('.$object-&gt;latitude.' '.$object-&gt;longitude.')';
  $object-&gt;coord = new yii\db\Expression("GeomFromText(:coord)", array(':coord' =&gt; $coordStr));
  </code></pre>