How can I group by `:key_id` using this query (`key_id` is a column in the report table), and that query is a method in a model called `Project`

```
self.reports.select{ |report| report.level <= 50}

```