Skip to content

Commit

Permalink
Add a validation to the pet model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Roberts committed Jan 13, 2017
1 parent 57a3a01 commit ec85989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/pet.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
class Pet < ApplicationRecord
validates :name, presence: true
end

0 comments on commit ec85989

Please sign in to comment.