I think this could just be
```ruby
court_type = self.court_types.pluck('LOWER(name)')
```