What the pluck?
A complete guide to using pluck, an ActiveRecord query method

A complete guide to using pluck, an ActiveRecord query method

In this post i'll go through how to write efficient queries for belongs_to associations. I primarly work with Rails so it will focus on that a bit but i'll share the SQL versions too so you can implement similarly everywhere. Example domain model Let...
