module.exports = {
  up(queryInterface, Sequelize) {
    return Promise.all([
      queryInterface.addColumn(
          'users',
          'passwordResetOptOut',
          {
            type: Sequelize.BOOLEAN,
            defaultValue: false,
            notNull: true
          },
      ),
      queryInterface.addColumn(
          'users',
          'passwordResetEnabled',
          {
            type: Sequelize.BOOLEAN,
            defaultValue: false,
            notNull: true
          },
      ),
    ]);
  },
  down(queryInterface, Sequelize) {
    return Promise.all([
      queryInterface.removeColumn(
          'threads',
          'inactive',
      )
    ]);
  },
};