title: Unable to execute the raw query in Sequelize migrations
body: <p>I am trying to update my database using Sequelize migrations so I have tried to write a Sequelize migrations like this </p>
  
  <pre><code>'use strict';
  module.exports = {
    up: (queryInterface, Sequelize, migration) =&gt; {
      queryInterface.addColumn('coaching_class_entries', 'bill_cycle', {
        type: Sequelize.INTEGER(4),
        allowNull: false,
        defaultValue: '0',
        field: 'bill_cycle',
        after: 'fees'
      })
        .then(() =&gt; queryInterface.addColumn('coaching_classes', 'bill_plans', {
          type: Sequelize.JSON,
          allowNull: false,
          defaultValue: 'NULL',
          field: 'bill_plans',
          after: 'bill_cycle'
        }))
        .then(() =&gt;
          migration.migrator.Sequelize.query('UPDATE coaching_classes  SET bill_plans = JSON_ARRAY(JSON_OBJECT("cycle", bill_cycle, "fee", fees));'));
  
    },
  
    down: (queryInterface, Sequelize) =&gt; {
      let migrations = [];
  
      migrations.push(queryInterface.removeColumn('coaching_class_entries', 'bill_cycle'))
      migrations.push(queryInterface.removeColumn('coaching_classes', 'bill_plans'))
      return Promise.all(migrations);
  
    }
  };
  </code></pre>
  
  <p>But it is always giving me error in raw query line </p>
  
  <blockquote>
    <p>Cannot read property 'Sequelize' of undefined </p>
  </blockquote>
  
  <p>What is the correct syntax for this?</p>