aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-01 11:10:17 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-01 11:10:17 -0300
commitdd39c96f592c83a3d22758a5cee67022bb8f4428 (patch)
tree0d188fb00d25ba8bea81cc3864db5e56757ba3cd /guides
parent69881fb03be8be5fa1cb56bb7a591006ec2becc3 (diff)
parent8f092302aaf065390ccf05429507b43fd5eadcb3 (diff)
downloadrails-dd39c96f592c83a3d22758a5cee67022bb8f4428.tar.gz
rails-dd39c96f592c83a3d22758a5cee67022bb8f4428.tar.bz2
rails-dd39c96f592c83a3d22758a5cee67022bb8f4428.zip
Merge pull request #19607 from rousisk/docs_sql_execute_correction
[ci skip] fix guides example on arbitrary SQL execution
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index de8bbc4174..7a994cc5de 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -501,7 +501,7 @@ If the helpers provided by Active Record aren't enough you can use the `execute`
method to execute arbitrary SQL:
```ruby
-Product.connection.execute('UPDATE `products` SET `price`=`free` WHERE 1')
+Product.connection.execute("UPDATE products SET price = 'free' WHERE 1=1")
```
For more details and examples of individual methods, check the API documentation.