diff options
author | Ben Orenstein <ben.orenstein@gmail.com> | 2011-05-27 22:05:22 -0400 |
---|---|---|
committer | Ben Orenstein <ben.orenstein@gmail.com> | 2011-05-27 22:05:22 -0400 |
commit | 4a376e48b93060e61af6b5852995e2e55a3d1a04 (patch) | |
tree | 9f76253b2084ad8424c2759a2bca1cea343f822e /railties/guides/source | |
parent | 5b6a423d6bcbfd4142c47765794a4f93b8178562 (diff) | |
download | rails-4a376e48b93060e61af6b5852995e2e55a3d1a04.tar.gz rails-4a376e48b93060e61af6b5852995e2e55a3d1a04.tar.bz2 rails-4a376e48b93060e61af6b5852995e2e55a3d1a04.zip |
Fix incorrect description of the returned results.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index d01e14fee7..b4ce60fcaa 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -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: <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> -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 |