1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-20 14:09:17 +00:00

Recommend deleting delegations instead of deleting them

This commit is contained in:
2016-01-13 13:50:19 +00:00
parent 85996d1955
commit c537c6067c
3 changed files with 10 additions and 9 deletions

View File

@@ -101,4 +101,12 @@ class Tournament < ActiveRecord::Base
end
point_adjustments
end
def removeSchoolDelegations
self.schools.each do |s|
s.delegates.each do |d|
d.destroy
end
end
end
end