Whoops.
.exclude { organizations[:id] =~ excluded_ids }
Solved.
On Saturday, September 28, 2019 at 2:08:42 AM UTC+3, xura wrote:
>
> Hi Jeremy,
>
> I have bucket and bucket_members tables. I join them together and i want
> to exclude some bucket.id.
>
> excluded_ids = [1,2,3]
>
> DB.select { buckets.* }
> .join(:bucket_members, bucket_id: :id)
> .where { bucket_members[:user_id] =~ id }
> .exclude(buckets[:id] => excluded_ids) # <-- here i need to
> exclude some ids from buckets table
> .group { buckets[:id] }.all
>
>
> How can i filter *bucket.id <http://bucket.id>*? Above sample hangs Ruby
> forever. Had to restart service.
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/fe11cc6c-734d-4a6d-90a0-b92e6047a6f7%40googlegroups.com.