We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7661c17 + 21ae703 commit d37c533Copy full SHA for d37c533
guides/source/active_record_basics.md
@@ -465,16 +465,16 @@ book = Book.take
465
The above results in the following SQL:
466
467
```sql
468
-# Book.all
+-- Book.all
469
SELECT "books".* FROM "books"
470
471
-# Book.first
+-- Book.first
472
SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT ? [["LIMIT", 1]]
473
474
-# Book.last
+-- Book.last
475
SELECT "books".* FROM "books" ORDER BY "books"."id" DESC LIMIT ? [["LIMIT", 1]]
476
477
-# Book.take
+-- Book.take
478
SELECT "books".* FROM "books" LIMIT ? [["LIMIT", 1]]
479
```
480
0 commit comments