mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-15 09:27:03 +00:00
Associated wrestlers and tournaments through weights
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class Wrestler < ActiveRecord::Base
|
||||
belongs_to :school
|
||||
belongs_to :weight
|
||||
has_one :tournament, through: :weight
|
||||
attr_accessor :allMatches, :isWrestlingThisRound, :boutByRound, :seasonWinPercentage
|
||||
|
||||
def isWrestlingThisRound(matchRound)
|
||||
|
||||
Reference in New Issue
Block a user