1
0
Fork 0
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:
Rafael Mendonça França 2015-04-01 01:52:58 -03:00
commit 69881fb03b

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: