Soc/app/models/food.rb

4 lines
69 B
Ruby

class Food < ApplicationRecord
validates :name, presence: true
end