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

You need to sign in or sign up before continuing.
20111206063000-changeSignatureColumnOfUserToMendatory.js 286 Bytes
module.exports = {
  up: function(migration, DataTypes, done) {
    migration.changeColumn('User', 'signature', {
      type: DataTypes.STRING,
      allowNull: false,
      defaultValue: 'Signature'
    }).complete(done)
  },

  down: function(migration, DataTypes, done) { done() }
}