Search code examples
Combine two ActiveRecord::Relation objects...


ruby-on-railsrails-activerecordarel

Read More
How to handle normalized attribute stripping away % characters when building LIKE query in arel?...


ruby-on-railsarel

Read More
How do I order by lower-cased field on an aliased association without manually specifying a join?...


ruby-on-railsactiverecordruby-on-rails-7arel

Read More
How can I update how ActiveRecord::Base#where interprets ranges?...


ruby-on-railsrubyactiverecordarel

Read More
How to do a LIKE query in Arel and Rails?...


ruby-on-railsactiverecordarel

Read More
How to build a dynamic scope in rails...


ruby-on-railsrails-activerecordarel

Read More
Grouping ands and ors in AREL...


sqlrubyarel

Read More
How can I dump an ActiveModel record as an INSERT SQL statement?...


ruby-on-railsactiverecordruby-on-rails-7arel

Read More
How do I escape a MySql reserved name in ActiveRecord Relations?...


ruby-on-railsrubyactiverecordrails-activerecordarel

Read More
Rails `where` for time less than queries...


mysqlsqlruby-on-railsdatearel

Read More
Build triple UNION query using Arel (Rails 5)...


ruby-on-railspostgresqlruby-on-rails-5arel

Read More
Select records from table where column value is contained in string (mysql with ActiveRecord)...


mysqlruby-on-railsactiverecordarel

Read More
db:migrate - unknown keyword: :klass - arel issue...


ruby-on-railsrubyarel

Read More
How to explicitly specify PARTITION in ActiveRecord SELECT query?...


mysqlruby-on-railsactiverecordrails-activerecordarel

Read More
How to write `(SELECT @row_index:=-1) AS r` in Arel?...


sqlruby-on-railsarel

Read More
Obtain Union all result in ActiveRecord...


ruby-on-railsruby-on-rails-4activerecordunionarel

Read More
How to extract JSON element within an Arel query on Postgres (Rails 5.2.4)?...


jsonruby-on-railspostgresqlarel

Read More
Check date is not null ? (rails, arel)...


ruby-on-rails-3arel

Read More
Rails Not query on entire Where clause...


sqlruby-on-railsactiverecordarel

Read More
PG::InvalidColumnReference: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select l...


ruby-on-railspostgresqlactiverecordarel

Read More
Converting a SQL statement to rails command...


ruby-on-railsarel

Read More
Best way to find a single record using ActiveRecord 3 / Arel?...


ruby-on-railsrubyactiverecordarel

Read More
ARel select rows by string length...


ruby-on-railsactiverecordarel

Read More
Trying to speed up finding an index in active record query...


ruby-on-railsarel

Read More
How to get active record relation of polymorphic parents from child object?...


ruby-on-railsrubyactiverecordrails-activerecordarel

Read More
Is 'Arel::Nodes::Quoted' the best way to avoid injection when using 'NamedFunctions'...


ruby-on-railsrubypostgresqlarel

Read More
Arel table query for where -> has_one through...


ruby-on-railsactiverecordwhere-clausearel

Read More
Arel UpdateManager with Join creates invalid SQL - how to rephrase?...


sqlruby-on-railscommon-table-expressionarel

Read More
How to use the distinct method in Rails with Arel Table?...


mysqlruby-on-railsrubyactiverecordarel

Read More
Create an ActiveRecord::Relation in rails 6 with a different table...


ruby-on-railsrails-activerecordruby-on-rails-6arel

Read More
BackNext