Skip to content

Commit

Permalink
Merge pull request #295 from knownasilya/patch-1
Browse files Browse the repository at this point in the history
Fix typos in examples
  • Loading branch information
tgriesser committed Jun 4, 2014
2 parents 4bb6465 + c1e8ab5 commit 87d0324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -43,12 +43,12 @@ knex.schema.createTable('users', function(table) {

// Then query the table...
.then(function() {
return knex.insert({name: 'Tim'}).into('users');
return knex.insert({user_name: 'Tim'}).into('users');
})

// ...and using the insert id, insert into the other table.
.then(function(rows) {
return knex.table('users').insert({account_name: 'knex', user_id: knex.rows[0]});
return knex.table('accounts').insert({account_name: 'knex', user_id: knex.rows[0]});
});

// Query both of the rows.
Expand All @@ -67,4 +67,4 @@ knex.schema.createTable('users', function(table) {
.catch(function(e) {
console.error(e);
});
```
```

0 comments on commit 87d0324

Please sign in to comment.