mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-12 08:18:44 +00:00
Model validations
This commit is contained in:
@@ -4,6 +4,8 @@ class Weight < ActiveRecord::Base
|
||||
has_many :matches, dependent: :destroy
|
||||
|
||||
attr_accessor :pools
|
||||
|
||||
validates :max, presence: true
|
||||
|
||||
HS_WEIGHT_CLASSES = [106,113,120,132,138,145,152,160,170,182,195,220,285]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user