Skip to content

Instantly share code, notes, and snippets.

@ryonlife
Created February 9, 2012 01:36
Show Gist options
  • Save ryonlife/1776356 to your computer and use it in GitHub Desktop.
Save ryonlife/1776356 to your computer and use it in GitHub Desktop.
Creates a capped collection for Braintree logging.
// cat schema/schema-create.js | mongo production # where `production` is the name of the database
db.createCollection('braintree', {capped: true, size: 1024*1024*1024});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment