Browse files

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

  • Loading branch information...
1 parent b0f221b commit 6c6f335c68e5238e116d384092428b039d01ecb6 @senny senny committed Jun 6, 2014
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`

0 comments on commit 6c6f335

Please sign in to comment.