提交 4a376e48 编写于 作者: B Ben Orenstein

Fix incorrect description of the returned results.

上级 5b6a423d
...@@ -489,10 +489,10 @@ Order.group("date(created_at)").having("created_at < ?", 1.month.ago) ...@@ -489,10 +489,10 @@ Order.group("date(created_at)").having("created_at < ?", 1.month.ago)
The SQL that would be executed would be something like this: The SQL that would be executed would be something like this:
<sql> <sql>
SELECT * FROM orders GROUP BY date(created_at) HAVING created_at < '2009-01-15' SELECT * FROM orders GROUP BY date(created_at) HAVING created_at < '2011-04-27'
</sql> </sql>
This will return single order objects for each day, but only for the last month. This will return single order objects for each day, but only those that are at least one month old.
h3. Overriding Conditions h3. Overriding Conditions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册