# All files / src/model dbVersion.coffee

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 6/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    101x
    1x
    1x
    1x

    1x

    1xmongoose = require 'mongoose'
    server = require '../server'
    connectionDefault = server.connectionDefault
    Schema = mongoose.Schema

    dbVersion = new Schema
      version:      Number
      lastUpdated:  Date

    exports.dbVersion = connectionDefault.model 'dbVersion', dbVersion