I prefer avoiding if, else statement you can write in that way
```ruby
return where(nil) unless search
where('first_name ILIKE ? OR last_name ILIKE ?', "%#{search.downcase}%", "%#{search.downcase}%")
```

We use Postgresql you can (should) use ILIKE, but lower is OK too