Skip to content
Browse files

Merge pull request #10937 from prathamesh-sonpatki/except_example

Added an example of the query without except before the example with except
  • Loading branch information...
2 parents 85bb7d9 + cbde6f5 commit add318c7f4b5c0e353a0f74c77661fef612efa65 @senny senny committed Jun 14, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 guides/source/active_record_querying.md
View
8 guides/source/active_record_querying.md
@@ -687,6 +687,10 @@ The SQL that would be executed:
```sql
SELECT * FROM posts WHERE id > 10 LIMIT 20
+
+# Original query without `except`
+SELECT * FROM posts WHERE id > 10 ORDER BY id asc LIMIT 20
+
```
### `unscope`
@@ -722,6 +726,10 @@ The SQL that would be executed:
```sql
SELECT * FROM posts WHERE id > 10 ORDER BY id DESC
+
+# Original query without `only`
+SELECT "posts".* FROM "posts" WHERE (id > 10) ORDER BY id desc LIMIT 20
+
```
### `reorder`

0 comments on commit add318c

Please sign in to comment.
Something went wrong with that request. Please try again.