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:
parent
5aff638e2d
commit
207f116234
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue