```ruby
class Category < ActiveRecord::Base
  has_many  :events

  validates :name,
            :presence
end
```

Complete syntax in validation for Category model
user
```ruby
class Category < ActiveRecord::Base
  has_many  :events

  validates :name,
            :presence => true
end
```
assistant