Permalink
Browse files

modify README.md

  • Loading branch information...
1 parent 84881a0 commit cfb55015369525402f466aba2b0b112d22f7b3cf @craftgear craftgear committed Feb 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -18,7 +18,7 @@ Feel free to vote and comment on cards (tickets/issues), if you want to join tea
```javascript
var Schema = require('./jugglingdb').Schema;
-var s = new Schema('redis');
+var schema = new Schema('redis', {port: 6379}); //port number depends on your configuration
// define models
var Post = schema.define('Post', {
title: { type: String, length: 255 },
@@ -48,7 +48,7 @@ Post.belongsTo(User, {as: 'author', foreignKey: 'userId'});
// post.author() -- sync getter when called without params
// post.author(user) -- setter when called with object
-s.automigrate(); // required only for mysql NOTE: it will drop User and Post tables
+schema.automigrate(); // required only for mysql NOTE: it will drop User and Post tables
// work with models:
var user = new User;

0 comments on commit cfb5501

Please sign in to comment.