mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-01 20:25:26 +00:00
Added 11 man bracket
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
class Match < ActiveRecord::Base
|
||||
belongs_to :tournament
|
||||
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default"]
|
||||
|
||||
def bout
|
||||
@round_number = self.round * 1000
|
||||
|
||||
self.bout_number = @round_number + self.id
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,5 +2,5 @@ class Tournament < ActiveRecord::Base
|
||||
has_many :schools, dependent: :destroy
|
||||
has_many :weights, dependent: :destroy
|
||||
has_many :matches, dependent: :destroy
|
||||
has_many :mats, dependent: :destroy
|
||||
has_many :mats, dependent: :destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user