Skip to content

Commit 137335b

Browse files
committed
validates presence of ingredientes and image_url in Pizza model
1 parent c5d2ad8 commit 137335b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/pizza.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class Pizza < ApplicationRecord
22
has_many :votes
3-
validates :name, presence: true
3+
validates :name, :ingredients, :image_url, presence: true
44
end

0 commit comments

Comments
 (0)