mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added logic to delegate tournament access
This commit is contained in:
@@ -2,6 +2,7 @@ class School < ActiveRecord::Base
|
||||
belongs_to :tournament, touch: true
|
||||
has_many :wrestlers, dependent: :destroy
|
||||
has_many :deductedPoints, through: :wrestlers
|
||||
has_many :delegates, class_name: "SchoolDelegate"
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user