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:
3
app/models/school.rb
Normal file
3
app/models/school.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class School < ActiveRecord::Base
|
||||
has_many :wrestlers
|
||||
end
|
||||
3
app/models/weight.rb
Normal file
3
app/models/weight.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Weight < ActiveRecord::Base
|
||||
has_many :wrestlers
|
||||
end
|
||||
4
app/models/wrestler.rb
Normal file
4
app/models/wrestler.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class Wrestler < ActiveRecord::Base
|
||||
belongs_to :school
|
||||
belongs_to :weight
|
||||
end
|
||||
Reference in New Issue
Block a user