Ruby: Ideas to convert Arel.sql to Arel::Nodes::Case?...
Read MoreHow can I get the columns used in the where expression from an existing ActiveRecord_Relation?...
Read MoreIn Rails5, how do I return the union of two scopes or combine them into one?...
Read MoreHow do I use the ransack gem to sort a table based on a model's instance method?...
Read MoreHow to properly add brackets to SQL queries with 'or' and 'and' clauses by using Are...
Read MoreHow to specify escape character for arel_table?...
Read MoreHow to extract a week from a date in Arel query with Rails 5.2?...
Read MoreHow to exclude an array of ids from query in Rails (using ActiveRecord)?...
Read MoreHow to dynamic, handle nested WHERE AND/OR queries using Rails and SQL...
Read MoreHow to join on subqueries using ARel?...
Read MoreHow to get a group of attributes associated with another group of attributes?...
Read MoreSelect from database a specific JSON node using Rails/AREL?...
Read MoreHow to use Arel to query across a polymorphic has_one relationship...
Read MoreActiverecord query with condition on following record...
Read MoreRails arel query for matching multiple habtm records...
Read MoreRails - how to combine incompatible statements with OR (Rails 5)...
Read MoreHow can I use Squeel with hstore in Rails...
Read MoreRe-write ActiveRecord query in Arel...
Read MoreRails arel table query with Date and Time...
Read MoreFind all records that contain a combination of attributes from an array...
Read MoreHow to use Arel::Nodes::NamedFunction to define GROUP_CONCAT with SEPARATOR option...
Read MoreRails + Postgres: How to `order` Using Multiple Possibly Nil Columns?...
Read MoreHow to use `matches()` with a database function?...
Read MoreArgumentError (Relation passed to #or must be structurally compatible. Incompatible values: [:select...
Read MoreActiveRecord query with alias'd table names...
Read MoreHow to link Arel queries with ActiveRecord methods?...
Read MoreRails 4 query unique by single attribute...
Read More