mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
12 lines
202 B
Ruby
12 lines
202 B
Ruby
class School < ActiveRecord::Base
|
|
belongs_to :tournament
|
|
has_many :wrestlers, dependent: :destroy
|
|
|
|
|
|
#calculate score here
|
|
def score
|
|
@matches = self.tournament.upcomingMatches
|
|
return 0
|
|
end
|
|
end
|