We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d2ad8 commit 137335bCopy full SHA for 137335b
app/models/pizza.rb
@@ -1,4 +1,4 @@
1
class Pizza < ApplicationRecord
2
has_many :votes
3
- validates :name, presence: true
+ validates :name, :ingredients, :image_url, presence: true
4
end
0 commit comments