-
bundle
-
rails db:seed
to create 4 posts, 3 of which havecomments_count
ORtags_count
of more than 0. -
In
rails console
,Post.where.not(comments_count: ..0). or(Post.where.not(tags_count: ..0)). count
correctly returns
3
. -
The example from the documentation,
Post.with( posts_with_comments: Post.where("comments_count > ?", 0), posts_with_tags: Post.where("tags_count > ?", 0) ). count
incorrectly returns
4
.
-
Notifications
You must be signed in to change notification settings - Fork 0
raghubetina/cte-test
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published