title: Sequelize umzug migrations
body: <p>I am using <code>sequelize js</code> and developed a <code>node js application</code>, which is deployed to production and have live DB.</p>
  
  <p>while in development mode, if I need to <code>alter</code> the <code>DB</code>, I used to do it using <strong><code>Sequelize.sync({ force: true })</code></strong> and it worked well.</p>
  
  <p>But now, after development is done <strong>I want to alter a table and add a column to it.</strong></p>
  
  <p><strong>I searched many posts but, didn't get an exact example on how to run these migrations.</strong></p>
  
  <p>I tried to use <code>Umzug</code> and run a migration, but it is throwing me errors.</p>
  
  <p>Here is the code I tried,</p>
  
  <p><strong>migrations/barmigration.js:</strong></p>
  
  <pre><code>  var Sequelize = require('sequelize');
  
  "use strict";
  
  module.exports = {
  
      up: function(migration, DataTypes) {
        return [
        migration.addColumn(
          'Bars',
          'PrinterId',
          Sequelize.STRING
        ),
        migration.addColumn(
          'Bars',
          'PrinterStatus',
          Sequelize.STRING
        )]
  
      },
  
      down: function(migration, DataTypes) {
          return
           [
              migration.removeColumn('Bars', 'PrinterStatus'),
              migration.removeColumn('Bars', 'PrinterId')
          ]
      }
  
  };
  </code></pre>
  
  <p>Here is the <strong><code>umzug configuration</code>:</strong></p>
  
  <pre><code> var Umzug = require('umzug');
      var sequelize = require('sequelize');
  
      var umzug = new Umzug({
  
          // storage: 'sequelize',
          model: 'Bar',
  
  
          storageOptions: {
              sequelize: sequelize,
          },
  
          migrations: {
              path: './migrations',
              pattern: /\.js$/
          }
  
      });
  
      //  umzug.up().then(function(migrations)  {
      //    console.log('Migration complete!');
     //     });
  
      umzug.down().then(function(migrations)  {
        console.log('Migration complete!');
      });
  </code></pre>
  
  <p>When I run that file, I am getting an error in <code>up function</code>, at this position <strong><code>return migration.addColumn</code></strong></p>
  
  <p><strong>Error:</strong></p>
  
  <p><strong><code>Unhandled rejection TypeError: Cannot read property 'addColumn' of undefined</code></strong></p>
  
  <p>So, the parameter migration seems to be <code>undefined</code>. Pls help me out.</p>