-
-mongoose = require('mongoose')
+mongoose = require 'mongoose'
 module.exports = mongoose
 
-mongoose.connect('mongodb://localhost/minimum')
+mongoose.connect 'mongodb://localhost/minimum'
 
 Schema = mongoose.Schema
 ObjectID = Schema.ObjectId

    comments: { type : [ String ],   requried : false, default: []       },
    addedBy : { type : ObjectID,     required : false                    }

#BoulderSchema.methods =
BoulderSchema.statics =
    downgrade: (id, gradenr) ->
        Boulder.findOne { _id: id }, (err, boulder) ->

                boulder.save()


mongoose.model 'boulder', BoulderSchema
Boulder = mongoose.model 'boulder'
