Files
MatchLiveTv/backend/app/models/match.rb
Emiliano Frascaro bba6df52c0 Initial commit: monorepo Match Live TV.
Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 17:45:37 +02:00

8 lines
222 B
Ruby

class Match < ApplicationRecord
belongs_to :team
has_many :stream_sessions, dependent: :destroy
validates :opponent_name, presence: true
validates :sets_to_win, numericality: { greater_than: 0, less_than: 6 }
end