mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-21 14:22:24 +00:00
Reset team scores when generating matches
This commit is contained in:
@@ -9,7 +9,9 @@ class Tournament < ActiveRecord::Base
|
||||
has_many :wrestlers, through: :weights
|
||||
has_many :matches, dependent: :destroy
|
||||
|
||||
|
||||
def resetSchoolScores
|
||||
schools.update_all("score = 0.0")
|
||||
end
|
||||
|
||||
def tournament_types
|
||||
["Pool to bracket"]
|
||||
|
||||
Reference in New Issue
Block a user