From c1e8ab5406744fdc348fa7b2bf40acdc4ab7f737 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Wed, 4 Jun 2014 12:12:43 -0400 Subject: [PATCH] Fix typos in examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7e3bcf288..b52c2d1898 100644 --- a/README.md +++ b/README.md @@ -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. @@ -67,4 +67,4 @@ knex.schema.createTable('users', function(table) { .catch(function(e) { console.error(e); }); -``` \ No newline at end of file +```