mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #19606 from yui-knk/fix/query_md
[ci skip] Fix `:having` option with `having` method
This commit is contained in:
commit
69881fb03b
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