🕵️♀️ Task
On an ActiveRecord::Relation
, the pluck
method will retrieve one or more attributes of each record in the collection and returns them in a Array
. You can pass one or more Symbol
s as an argument. Each Symbol
must match the name of a column.