From f387aa1bdd09866386dcdf829542e27e7c4d626d Mon Sep 17 00:00:00 2001 From: Jimmy Petersen Date: Mon, 11 Nov 2013 13:35:57 +0100 Subject: Fixed typo in migrations guide Product model name was pluralized in example in migrations guide. [ci skip] --- guides/source/migrations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index b7283d16cc..71a177bca7 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -420,7 +420,7 @@ If the helpers provided by Active Record aren't enough you can use the `execute` method to execute arbitrary SQL: ```ruby -Products.connection.execute('UPDATE `products` SET `price`=`free` WHERE 1') +Product.connection.execute('UPDATE `products` SET `price`=`free` WHERE 1') ``` For more details and examples of individual methods, check the API documentation. -- cgit v1.2.3