1
0
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:
Jacob Cody Wimer
2014-01-22 13:12:40 -05:00
parent 4a463132da
commit d4b97c83c3
13 changed files with 91 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
class School < ActiveRecord::Base
belongs_to :tournament
has_many :wrestlers
has_many :wrestlers, dependent: :destroy
end

View File

@@ -1,3 +1,4 @@
class Tournament < ActiveRecord::Base
has_many :schools
has_many :schools, dependent: :destroy
has_many :weights, dependent: :destroy
end

View File

@@ -1,3 +1,4 @@
class Weight < ActiveRecord::Base
has_many :wrestlers
belongs_to :tournament
has_many :wrestlers, dependent: :destroy
end