mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 03:11:51 -05:00
035e0c1213
This prevents mongoose from auto-creating missing indexes on boot.
16 lines
408 B
CoffeeScript
16 lines
408 B
CoffeeScript
mongoose = require 'mongoose'
|
|
Settings = require 'settings-sharelatex'
|
|
|
|
Schema = mongoose.Schema
|
|
ObjectId = Schema.ObjectId
|
|
|
|
SystemMessageSchema = new Schema
|
|
content : type: String, default:''
|
|
|
|
conn = mongoose.createConnection(Settings.mongo.url, {
|
|
server: {poolSize: Settings.mongo.poolSize || 10},
|
|
config: {autoIndex: false}
|
|
})
|
|
|
|
|
|
exports.SystemMessage = conn.model('SystemMessage', SystemMessageSchema)
|