Permalink
Browse files

Small fixes

  • Loading branch information...
1 parent 979f1a3 commit eb805054233813b18f745ec21ef1649e3c803e81 @cayasso committed Feb 21, 2013
Showing with 11 additions and 9 deletions.
  1. +11 −9 README.md
View
@@ -15,17 +15,23 @@ npm install mongoose-allocate
```javascript
var mongoose = require('mongoose');
+var Schema = mongoose.Schema;
var allocatePlugin = require('mongoose-allocate');
...
-var SampleSchema = new Schema({
+// This is a capped collection
+var MySchema = new Schema({
...
}, { capped: { size: 1000, max: 5, autoIndexId: true } }));
-SampleSchema.plugin(allocatePlugin, {len: 512, char: 'x'});
+...
+
+MySchema.plugin(allocatePlugin, {len: 512, char: 'x'});
+
+...
-var SampleModel = db.model("SampleModel", SampleSchema);
+var MyModel = db.model('MyModel', MySchema);
```
## Options
@@ -44,16 +50,12 @@ var SampleModel = db.model("SampleModel", SampleSchema);
## Test
- // Default options
- mocha
+ // Run
+ $ mocha
[Mocha][] is needed for runing the test
-## Bugs and pull requests
-
-Please use the github [repository][] to notify bugs and make pull requests.
-
## License
Copyright (c) 2013 Jonathan brumley <cayasso@gmail.com>

0 comments on commit eb80505

Please sign in to comment.