Skip to content

Commit cfb5501

Browse files
committed
modify README.md
1 parent 84881a0 commit cfb5501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Feel free to vote and comment on cards (tickets/issues), if you want to join tea
1818

1919
```javascript
2020
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
2222
// define models
2323
var Post = schema.define('Post', {
2424
title: { type: String, length: 255 },
@@ -48,7 +48,7 @@ Post.belongsTo(User, {as: 'author', foreignKey: 'userId'});
4848
// post.author() -- sync getter when called without params
4949
// post.author(user) -- setter when called with object
5050

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
5252

5353
// work with models:
5454
var user = new User;

0 commit comments

Comments
 (0)