summaryrefslogblamecommitdiffstats
path: root/server/migrations/20180717132233-create-group.js
blob: 71258dd0f126354e16f7ab7d2e93bd96f732915b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                 


                              






                                             
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('groups', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      name: {
        type: Sequelize.STRING
      },
      description: {
        type: Sequelize.STRING
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('groups')
  }
}