Sails.js model updatedAt (updated_at) not auto updating
<p><strong>Expected Behavior:</strong></p>

<p>After successfully updating a record using <a href="http://sailsjs.org/documentation/reference/waterline-orm/models/update" rel="nofollow noreferrer">.update()</a>, the record's <code>updated_at</code> field should auto-update to the current time.</p>

<p><em>Note: I changed the <a href="http://sailsjs.org/documentation/concepts/models-and-orm/model-settings#?autoupdatedat" rel="nofollow noreferrer">autoUpdatedAt</a> setting (also mentioned <a href="https://stackoverflow.com/questions/24987551/is-it-possible-to-rename-createdat-and-updatedat-in-sails-js-waterline">here</a>) using <code>autoUpdatedAt: 'updated_at'</code> in config.models so the field is titled <code>updated_at</code> instead of <code>updatedAt</code>. It should still have the same functionality I would assume.</em></p>

<p><strong>Actual Behavior:</strong></p>

<p>The model successfully updates, but it does not update the <code>updated_at</code> field.</p>

<p><strong>Code Run:</strong></p>

<pre><code>model.update(primary, data)
.then(function updateCB(updated){
  // error handling
  sails.log('Updated successfully');
  sails.log(updated);
});
</code></pre>

<p><strong>Questions:</strong></p>

<ul>
<li>Why is this?</li>
<li>How do I fix this?</li>
</ul>

<hr>

<p><strong>Result: Issue for Sails</strong></p>

<p>I was able to reproduce it on a new project, so it looks like it's a problem with sails. Issue link: <a href="https://github.com/balderdashy/sails/issues/3821" rel="nofollow noreferrer">https://github.com/balderdashy/sails/issues/3821</a></p>

<p>See my answer below for more info.</p>