mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 22:44:14 +00:00
config.load_defaults is now 7.1 and I had to add optional belongs to to a couple models as a deprecation from the 4.2 to 5.0 upgrade
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Match < ActiveRecord::Base
|
||||
class Match < ApplicationRecord
|
||||
belongs_to :tournament, touch: true
|
||||
belongs_to :weight, touch: true
|
||||
belongs_to :mat, touch: true
|
||||
belongs_to :mat, touch: true, optional: true
|
||||
has_many :wrestlers, :through => :weight
|
||||
has_many :schools, :through => :wrestlers
|
||||
validate :score_validation, :win_type_validation, :bracket_position_validation, :overtime_type_validation
|
||||
|
||||
Reference in New Issue
Block a user