mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-05 06:07:20 +00:00
14 lines
309 B
Ruby
14 lines
309 B
Ruby
class Tournament < ActiveRecord::Base
|
|
has_many :schools, dependent: :destroy
|
|
has_many :weights, dependent: :destroy
|
|
has_many :matches, dependent: :destroy
|
|
has_many :mats, dependent: :destroy
|
|
|
|
def bouts
|
|
@pool = Pool.new
|
|
@pool.createPool(self.id)
|
|
@bouts = Bout.all
|
|
return @bouts
|
|
end
|
|
end
|