1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 23:44:52 +00:00

Added safeguards for generating pool matches along with tests, updated two errors on about page, and added time saver to create middle school weights

This commit is contained in:
2023-01-24 22:56:22 +00:00
parent 1d0cff0e6f
commit c133a8b051
6 changed files with 131 additions and 23 deletions

View File

@@ -12,6 +12,7 @@ class Weight < ActiveRecord::Base
# tournament model runs the code via method create_pre_defined_weights
HS_WEIGHT_CLASSES = "106,113,120,126,132,138,144,150,157,165,175,190,215,285"
HS_GIRLS_WEIGHT_CLASSES = "100,105,110,115,120,125,130,135,140,145,155,170,190,235"
MS_WEIGHT_CLASSES = "80,86,92,98,104,110,116,122,128,134,142,150,160,172,205,245"
before_destroy do
self.tournament.destroy_all_matches