%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/usr/local/lib/node_modules/node-mongoose-cli/templates/
Upload File :
Create Path :
Current File : //proc/self/root/usr/local/lib/node_modules/node-mongoose-cli/templates/seed.ejs

const mongoose = require('mongoose');
const db = require('../index');
'use strict';

module.exports = {
    up: function () {
        /*
          Add altering commands here.
          Return a promise to correctly handle asynchronicity.


          For Example


          return db.<%- name %>.create([])
        */
    },

    down: function () {
        /*
          Add reverting commands here.
          Return a promise to correctly handle asynchronicity.

          Example:

          return db.<%- name %>.remove({})
        */
    }
};

Zerion Mini Shell 1.0