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*? 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/23ad6105-c4fb-40aa-bf98-3927966196a9%40googlegroups.com.

Reply via email to