ActiveRecord subqueries using `.from()`

Posted Over 6 years ago. Visible to the public.

You can use #from to build sub-queries...

Useful when you want to chain on a scope that uses SELECT DISTINCT and ORDER BY...

Greg
Last edit
Over 6 years ago
Greg
Posted by Greg to Ruby on Rails (2017-11-04 14:26)