1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Using action cable to send stats updates to the client and made a spectate page.

This commit is contained in:
2025-04-21 17:12:54 -04:00
parent 44fb5388b4
commit 3e4317dbc5
15 changed files with 565 additions and 88 deletions

View File

@@ -2,6 +2,7 @@ class Match < ApplicationRecord
belongs_to :tournament, touch: true
belongs_to :weight, touch: true
belongs_to :mat, touch: true, optional: true
belongs_to :winner, class_name: 'Wrestler', foreign_key: 'winner_id', optional: true
has_many :wrestlers, :through => :weight
has_many :schools, :through => :wrestlers
validate :score_validation, :win_type_validation, :bracket_position_validation, :overtime_type_validation