mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 15:42:09 +00:00
Created Pool 1 of 10 Man Bracket
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
class School < ActiveRecord::Base
|
||||
belongs_to :tournament
|
||||
has_many :wrestlers, dependent: :destroy
|
||||
|
||||
#calculate score here
|
||||
#def score
|
||||
# @score = 0
|
||||
# self.wrestlers.each do |w|
|
||||
# @score = @score + w.season_win * 2
|
||||
# end
|
||||
# self.score = @score
|
||||
#end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user