Search code examples
Ruby: Ideas to convert Arel.sql to Arel::Nodes::Case?...

ruby-on-railsrubyarel

Read More
How can I get the columns used in the where expression from an existing ActiveRecord_Relation?...

ruby-on-railsreflectionrails-activerecordarel

Read More
How to bulk insert with Arel?...

ruby-on-railsrubypostgresqlruby-on-rails-4arel

Read More
How to left join with Arel?...

rubyjoinarel

Read More
In Rails5, how do I return the union of two scopes or combine them into one?...

ruby-on-railspostgresqlactiverecordarel

Read More
How do I use the ransack gem to sort a table based on a model's instance method?...

ruby-on-railsransackarel

Read More
How to properly add brackets to SQL queries with 'or' and 'and' clauses by using Are...

sqlruby-on-railsrubyruby-on-rails-3arel

Read More
How to specify escape character for arel_table?...

ruby-on-railsarel

Read More
How to extract a week from a date in Arel query with Rails 5.2?...

ruby-on-railsarel

Read More
How to exclude an array of ids from query in Rails (using ActiveRecord)?...

activerecordruby-on-rails-3arelactive-relation

Read More
How to dynamic, handle nested WHERE AND/OR queries using Rails and SQL...

sqlruby-on-railsrubyactiverecordarel

Read More
How to join on subqueries using ARel?...

sqlruby-on-rails-3activerecordruby-on-rails-3.2arel

Read More
How to get a group of attributes associated with another group of attributes?...

sqlruby-on-railspostgresqlactiverecordarel

Read More
Select from database a specific JSON node using Rails/AREL?...

ruby-on-railsjsonpostgresqlarel

Read More
How to use Arel to query across a polymorphic has_one relationship...

ruby-on-railsactiverecorddatatablesarel

Read More
Activerecord query with condition on following record...

ruby-on-railspostgresqlactiverecordarel

Read More
Rails arel query for matching multiple habtm records...

ruby-on-railsrubyactiverecordhas-and-belongs-to-manyarel

Read More
Case Statements in ARel...

mysqlruby-on-railsactiverecordarel

Read More
Rails - how to combine incompatible statements with OR (Rails 5)...

ruby-on-railsarel

Read More
How can I use Squeel with hstore in Rails...

ruby-on-railsrubypostgresqlarelhstore

Read More
Re-write ActiveRecord query in Arel...

ruby-on-railsrubyactiverecordarel

Read More
Rails arel table query with Date and Time...

ruby-on-railsdaterails-activerecordarel

Read More
Find all records that contain a combination of attributes from an array...

sqlruby-on-railsactiverecordruby-on-rails-5arel

Read More
How to use Arel::Nodes::NamedFunction to define GROUP_CONCAT with SEPARATOR option...

rubyarel

Read More
Rails + Postgres: How to `order` Using Multiple Possibly Nil Columns?...

ruby-on-railsrubypostgresqlarel

Read More
How to use `matches()` with a database function?...

arel

Read More
ArgumentError (Relation passed to #or must be structurally compatible. Incompatible values: [:select...

ruby-on-railspostgresqlactiverecordruby-on-rails-5arel

Read More
ActiveRecord query with alias'd table names...

ruby-on-railsactiverecordarel

Read More
How to link Arel queries with ActiveRecord methods?...

ruby-on-railsactiverecordarel

Read More
Rails 4 query unique by single attribute...

ruby-on-railspostgresqlactiverecordarel

Read More
BackNext