Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs, fix type in foreign key. Example uses Post not Article. [ci skip]

  • Loading branch information...
commit 6c6f335c68e5238e116d384092428b039d01ecb6 1 parent b0f221b
@senny senny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/active_record_querying.md
View
4 guides/source/active_record_querying.md
@@ -754,14 +754,14 @@ The SQL that would be executed:
```sql
SELECT * FROM posts WHERE id = 10
-SELECT * FROM comments WHERE article_id = 10 ORDER BY name
+SELECT * FROM comments WHERE post_id = 10 ORDER BY name
```
In case the `reorder` clause is not used, the SQL executed would be:
```sql
SELECT * FROM posts WHERE id = 10
-SELECT * FROM comments WHERE article_id = 10 ORDER BY posted_at DESC
+SELECT * FROM comments WHERE post_id = 10 ORDER BY posted_at DESC
```
### `reverse_order`
Please sign in to comment.
Something went wrong with that request. Please try again.