Kruhlmann/gatekeeper

View on GitHub
migrations/1575142634006_active-flag.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable camelcase */

exports.shorthands = undefined;

exports.up = (pgm) => {
    pgm.addColumns("captchas", {
        active: {
            type: "boolean",
            default: true,
            notNull: true,
        }
    });
};

exports.down = (pgm) => {
    pgm.dropColumns("captchas", ["active"]);
};