use
```ruby
validates :name, presence: true, length: { maximum: 20 }
``` 
instead of 
```ruby
validates_presence_of :name
validates_length_of    :name, maximum: 20
```