blakenoll
12/4/2017 - 4:31 PM

Get all records by specific column

Rails sytax to find all records based on distict value in certain column

Item.select('distinct on (COLUMNNAME) *')