mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Fix :having
option with having
method
This commit is contained in:
parent
a6ecc06ece
commit
8f73c3ff61
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ GROUP BY status
|
|||
Having
|
||||
------
|
||||
|
||||
SQL uses the `HAVING` clause to specify conditions on the `GROUP BY` fields. You can add the `HAVING` clause to the SQL fired by the `Model.find` by adding the `:having` option to the find.
|
||||
SQL uses the `HAVING` clause to specify conditions on the `GROUP BY` fields. You can add the `HAVING` clause to the SQL fired by the `Model.find` by adding the `having` method to the find.
|
||||
|
||||
For example:
|
||||
|
||||
|
|
Loading…
Reference in a new issue