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

When deleting a wrestler, all matches need to be deleted and a director will need to regenerate the matches.

This commit is contained in:
2019-01-24 13:45:45 +00:00
parent c721abe1f6
commit ceb7645490

View File

@@ -9,7 +9,7 @@ class Wrestler < ActiveRecord::Base
validates :name, :weight_id, :school_id, presence: true
before_destroy do
# self.tournament.destroy_all_matches
self.tournament.destroy_all_matches
end
before_create do