lib/migrator.js
function Migrator(sequelize, options) {

        this.sequelize = sequelize;
        this.options = Utils._.extend({
            path:        __dirname + '/../migrations',
            from:        null,
            to:          null,
            logging:     console.log,
            filesFilter: /\.js$/
        }, options || {});

        if (this.options.logging === true) {
            console.log('DEPRECATION WARNING: The logging-option should be either a function or false. Default: console.log');
            this.options.logging = console.log;
        }

        if (this.options.logging == console.log) {
            // using just console.log will break in node < 0.6
            this.options.logging = function(s) { console.log(s); }
        }

    }
function Migrator(sequelize, options) {

        this.sequelize = sequelize;
        this.options = Utils._.extend({
            path:        __dirname + '/../migrations',
            from:        null,
            to:          null,
            logging:     console.log,
            filesFilter: /\.js$/
        }, options || {});

        if (this.options.logging === true) {
            console.log('DEPRECATION WARNING: The logging-option should be either a function or false. Default: console.log');
            this.options.logging = console.log;
        }

        if (this.options.logging == console.log) {
            // using just console.log will break in node < 0.6
            this.options.logging = function(s) { console.log(s); }
        }

    }
function Migrator ( sequelize , options ) { this . sequelize = sequelize ; this . options = Utils . _ . extend ( { path : __dirname + '/../migrations' , from : null , to : null , logging : console . log , filesFilter : / \.js$ / } , options || { } ) ; if ( this . options . logging === true ) { console . log ( 'DEPRECATION WARNING: The logging-option should be either a function or false. Default: console.log' ) ; this . options . logging = console . log ; } if ( this . options . logging == console . log ) { // using just console.log will break in node < 0.6 this . options . logging = function ( s ) { console . log ( s ) ; } } }
Sequelize Migrator class.
@class Migrator
@param {object} sequelize - the sequelize instance.
@param {object} [options] - the migration options.
@constructor
Sequelize Migrator class .