1
0
Fork 0
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:
yui-knk 2015-04-01 13:45:56 +09:00
parent a6ecc06ece
commit 8f73c3ff61

View file

@ -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: