不要怂,就是干,撸起袖子干!

sequelize-sync.ejs 349 Bytes
// create all tables... now!
sequelize.sync() // will emit success or failure

// force it!
sequelize.sync({force: true}) // emit ... nomnomnom

// want to drop 'em all?
sequelize.drop() // I guess you've got it (emit)

// emit handling:
sequelize.[sync|drop]().on('success', function() {
  // woot woot
}).on('failure', function() {
  // whooops
})