Skip to content
This repository
Browse code

modify README.md

  • Loading branch information...
commit cfb55015369525402f466aba2b0b112d22f7b3cf 1 parent 84881a0
Shunsuke Watanabe authored February 04, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  README.md
4  README.md
Source Rendered
@@ -18,7 +18,7 @@ Feel free to vote and comment on cards (tickets/issues), if you want to join tea
18 18
 
19 19
 ```javascript
20 20
 var Schema = require('./jugglingdb').Schema;
21  
-var s = new Schema('redis');
  21
+var schema = new Schema('redis', {port: 6379}); //port number depends on your configuration
22 22
 // define models
23 23
 var Post = schema.define('Post', {
24 24
     title:     { type: String, length: 255 },
@@ -48,7 +48,7 @@ Post.belongsTo(User, {as: 'author', foreignKey: 'userId'});
48 48
 // post.author() -- sync getter when called without params
49 49
 // post.author(user) -- setter when called with object
50 50
 
51  
-s.automigrate(); // required only for mysql NOTE: it will drop User and Post tables
  51
+schema.automigrate(); // required only for mysql NOTE: it will drop User and Post tables
52 52
 
53 53
 // work with models:
54 54
 var user = new User;

0 notes on commit cfb5501

Please sign in to comment.
Something went wrong with that request. Please try again.