Skip to content

Commit

Permalink
Added an example of the query without except before the example with …
Browse files Browse the repository at this point in the history
…except
  • Loading branch information
prathamesh-sonpatki committed Jun 14, 2013
1 parent 90a6059 commit cbde6f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions guides/source/active_record_querying.md
Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit cbde6f5

Please sign in to comment.