Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
222 B
Ruby
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
|