1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add back missing LIMIT 1 in find_by SQL example [ci skip]

This commit is contained in:
Alex Ghiculescu 2020-10-06 15:48:15 -05:00 committed by GitHub
parent 5aff638e2d
commit 207f116234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1719,6 +1719,7 @@ FROM books
INNER JOIN authors
ON authors.id = books.author_id
WHERE books.title = $1 [["title", "Abstraction and Specification in Program Development"]]
LIMIT 1
```
NOTE: Note that if a query matches multiple records, `find_by` will