```ruby
class ServiceStatusType < ActiveRecord::Base
        
  # default scope
  default_scope { where(:active => true) }

  def to_s
    name
  end
              
end
```

Add .search method to ServiceStatusType, analogous to other lookup tables
user
```ruby
class ServiceStatusType < ActiveRecord::Base
        
  # default scope
  default_scope { where(:active => true) }

  
  def self.search(text, exact = true)
    if exact
      x = where('name = ? OR code = ? OR description = ?', text, text, text).first
    else
      val = "%#{text}%"
      x = where('name = LIKE ? OR code LIKE ? OR description LIKE ?', val, val, val).first
    end
    x
  end

  def to_s
    name
  end
              
end
```
assistant