1
0
Fork 0
peertube/server/initializers/migrations/0005-create-application.js

18 lines
379 B
JavaScript
Raw Normal View History

/*
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.')
}