Skip to content

Instantly share code, notes, and snippets.

@mariorodriguespt
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariorodriguespt/b88b73e1aff02513f9b8 to your computer and use it in GitHub Desktop.
Save mariorodriguespt/b88b73e1aff02513f9b8 to your computer and use it in GitHub Desktop.
Meteor.startup(function(){
var toysCollection = Mongo.Collection.get('MeteorToysCredentials');
if( toysCollection.find().count() === 0 ) {
toysCollection.insert({
email : 'your@email.com',
password :'password'
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment