title: How to change db migration order in Sequelize Js
body: <p>I'm getting below error when I'm trying to execute <code>npx sequelize-cli db:migrate</code></p>
  
  <pre><code>ERROR: Failed to open the referenced table 'Companies'
  </code></pre>
  
  <p>I feel this is coming because I generated the user model before the company model. I mean, first, I have generated the user, then I have generated company and I have added a reference like the user belongsTo company. </p>
  
  <pre><code> Company.hasMany(models.User, {
        as: 'users',
        foreignKey: 'compId'
      });
  
   User.belongsTo(models.Company, {
        as:'company',
        foreignKey:'compId'
      })
  </code></pre>
  
  <p>Do anyone knows how to resolve that</p>