A Ruby Relational Algebra Library
I've written a couple of complex queries (at least to me) with Ruby on Rail's query interface: watched_news_posts = …
ruby-on-rails activerecord union active-relationI would like to perform an ActiveRecord query that returns all records except those records that have certain ids. The …
activerecord ruby-on-rails-3 arel active-relationI have two tables (subjects and pages) in one-to-many relations. I want to add criterias from subjects as well pages …
ruby-on-rails-3 join active-relationI am having this unexplained ActiveRecord::Relation, undefined method error . I don't know why, since my model association are well …
ruby-on-rails active-relationExample class User has_many :tickets end I want to create association which contains logic of count tickets of user …
ruby-on-rails ruby ruby-on-rails-3 activerecord active-relationI need to be able to chain an arbitrary number of sub-selects with UNION using ActiveRelation. I'm a little confused …
ruby-on-rails ruby-on-rails-3 union active-relationHere is code of two models which have 1 to 1 association class User < ActiveRecord::Base has_one :e_user validates_…
ruby-on-rails rails-activerecord model-associations active-relation