active_record_union
active_record_union copied to clipboard
UNIONs in ActiveRecord! Adds proper union and union_all methods to ActiveRecord::Relation.
Hi @brianhempel @glebm! I am coming from the Readme where you asked folks to make a noise around supporting 'eager-loading'. Is that still on the radar? In my case, almost...
I get an error "Cannot union relation with includes" running my app (key gems: activeadmin + active_record_union). But the same code works without any errors running via console. App: ```...
Is there a way to use this extension also within sinatra-activerecord?
https://travis-ci.org/thredded/thredded/jobs/121800665 > ActiveRecord::StatementInvalid: > PG::ProtocolViolation: ERROR: bind message supplies 2 parameters, but prepared statement "a253" requires 1 > : SELECT "thredded_topics".\* FROM ( (SELECT "thredded_topics".\* FROM "thredded_topics" WHERE "thredded_topics"."messageboard_id" =...
``` ruby [user_1.posts, user_2.posts, Post.published].inject(:union) ``` ###### Nested ``` sql SELECT "posts".* FROM ( SELECT "posts".* FROM ( SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 UNION SELECT "posts".* FROM...