Soc/app/models/diary_entry.rb

12 lines
260 B
Ruby
Raw Normal View History

2023-12-29 12:16:30 +00:00
class DiaryEntry < ApplicationRecord
belongs_to :user
validates :date,
:pain_level,
:energy_level,
:mental_alertness_level,
:work_stress_level,
:life_stress_level,
presence: true
end