pluck is a Rails function used to query a single or multiple columns from the underlying table of a model.
pluck is a Rails function used to query a single or multiple columns from the underlying table of a model. It accepts a list of column names as argument and returns an array of values of the specified columns with the corresponding data type.