expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({username:'VARCHAR(255) NOT NULL',id:'INTEGER NOT NULL auto_increment PRIMARY KEY'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({username:'VARCHAR(255) NOT NULL',id:'INTEGER NOT NULL auto_increment PRIMARY KEY'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User1.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User1.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User2.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User2.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',deletedAt:'DATETIME',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',deletedAt:'DATETIME',updatedAt:'DATETIME NOT NULL',createdAt:'DATETIME NOT NULL'});
done();
});
});
it('underscores timestamps if underscored',function(done){
it('underscores timestamps if underscored',function(){
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',deleted_at:'DATETIME',updated_at:'DATETIME NOT NULL',created_at:'DATETIME NOT NULL'});
expect(this.sequelize.getQueryInterface().QueryGenerator.attributesToSQL(User.attributes)).to.deep.equal({id:'INTEGER NOT NULL auto_increment PRIMARY KEY',deleted_at:'DATETIME',updated_at:'DATETIME NOT NULL',created_at:'DATETIME NOT NULL'});
done();
});
});
it('omits text fields with defaultValues',function(done){
it('omits text fields with defaultValues',function(){