1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added basic scaffolds for schools wrestlers and weights

This commit is contained in:
Jacob Cody Wimer
2013-12-31 11:23:43 -05:00
parent 5b6a127549
commit 24d9deee8b
57 changed files with 943 additions and 1 deletions

3
app/models/school.rb Normal file
View File

@@ -0,0 +1,3 @@
class School < ActiveRecord::Base
has_many :wrestlers
end

3
app/models/weight.rb Normal file
View File

@@ -0,0 +1,3 @@
class Weight < ActiveRecord::Base
has_many :wrestlers
end

4
app/models/wrestler.rb Normal file
View File

@@ -0,0 +1,4 @@
class Wrestler < ActiveRecord::Base
belongs_to :school
belongs_to :weight
end