I have a whole bunch of child classes that inherit from a parent class via single-table-inheritance in my Rails app. I\'d like a way to get an array of all the child classes tha
This will do it in one SQL query:
# SELECT DISTINCT type FROM objects Object.uniq.pluck(:type)