How would you do this with an ActiveRecord::Relation?