Files
mpa-blog/app/models/party.rb
Wild Karl-Heinz 6b96c100a5 - working party
- working friend
- working attendent
2025-11-22 20:59:19 +01:00

7 lines
183 B
Ruby

class Party < ApplicationRecord
has_many :attendents
has_many :friends, through: :attendents
validates :title, :location, :start_date, :start_time, :status, presence: true
end