And this is a scope
``` ruby
scope :search, -> q { where('title ILIKE ?', "%#{q}%") }
```