aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0005-create-application.js
blob: e99dec019c9239bbaad4cb2ec8b6961031b97725 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
  Create the application collection in MongoDB.
  Used to store the actual MongoDB scheme version.
*/

const mongoose = require('mongoose')

const Application = mongoose.model('Application')

exports.up = function (callback) {
  const application = new Application()
  application.save(callback)
}

exports.down = function (callback) {
  throw new Error('Not implemented.')
}