mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 23:53:06 +00:00
Updated re-directs, added weights to tournament#show, and edited a few views
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class School < ActiveRecord::Base
|
||||
belongs_to :tournament
|
||||
has_many :wrestlers
|
||||
has_many :wrestlers, dependent: :destroy
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
class Tournament < ActiveRecord::Base
|
||||
has_many :schools
|
||||
has_many :schools, dependent: :destroy
|
||||
has_many :weights, dependent: :destroy
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
class Weight < ActiveRecord::Base
|
||||
has_many :wrestlers
|
||||
belongs_to :tournament
|
||||
has_many :wrestlers, dependent: :destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user