mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-19 22:01:31 +00:00
Associated wrestlers and tournaments through weights
This commit is contained in:
@@ -3,6 +3,7 @@ class Tournament < ActiveRecord::Base
|
||||
has_many :weights, dependent: :destroy
|
||||
has_many :matches, dependent: :destroy
|
||||
has_many :mats, dependent: :destroy
|
||||
has_many :wrestlers, through: :weights
|
||||
attr_accessor :upcomingMatches, :unfinishedMatches
|
||||
serialize :matchups_array
|
||||
|
||||
|
||||
Reference in New Issue
Block a user