Please follow the formatting convention:
validates :name, presence: true

The same for the coming set of lines