Should Sequelize migrations update model files? : <p>Are Sequelize migrations supposed to keep your model files in line with your database?</p>

<p>I used the sequelize cli to bootstrap a simple project and create a model <code>node_modules/.bin/sequelize model:generate --name User --attributes email:string</code>. I migrated this with no issue. </p>

<p>Then I created the following migration file to add a notNull constraint to the user email attribute.</p>

<p><strong>updateEmail migration</strong></p>

<pre><code>const models = require("../models")

module.exports = {
  up: (queryInterface, Sequelize) =&gt; {
      return queryInterface.changeColumn(models.User.tableName, 'email',{
        type: Sequelize.STRING,
        allowNull: false,
      });
    },

  down: (queryInterface, Sequelize) =&gt; {
      return queryInterface.changeColumn(models.User.tableName, 'email',{
        type: Sequelize.STRING,
      });
    },
};
</code></pre>

<p>The database schema updated to add the constraint but the model file did not.  Is there a way to automatically update the model files as you make migrations?</p>
