Active Record Subqueries using Rails and PostgreSQL
This article, briefly covers the idea of using the Active Record in Ruby on Rails with to create a subqueries to improve searches of a PostgreSQL database. An example where a subquery in SQL could be useful is: We have a table called comments which has three columns: author, comment_text, and created_at. The goal is […]