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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user