FOGProject/fog-too

View on GitHub
migrations/1.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict;'

module.exports = {
    up: function(db, logger, next) {
        db.collection('role').update({}, {$set: {isCool: true}}, next);
    },
    down: function(db, logger, next) {
        db.collection('role').update({}, {$unset: {isCool: ""}}, next);
    },
    _meta: {
        description: "Add an isCool flag to the Role model"
    }
};