mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 16:01:56 +00:00
Model validations
This commit is contained in:
@@ -3,6 +3,7 @@ class School < ActiveRecord::Base
|
||||
has_many :wrestlers, dependent: :destroy
|
||||
has_many :deductedPoints, through: :wrestlers
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
#calculate score here
|
||||
def pageScore
|
||||
|
||||
Reference in New Issue
Block a user