mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
fixing bug with merge into
This commit is contained in:
parent
edfc9f112e
commit
21c66cd27c
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ class School < ApplicationRecord
|
|||
recipient_lists.update_all(school_id: school.id)
|
||||
recipients.update_all(school_id: school.id)
|
||||
school_categories.each do |school_category|
|
||||
if school.school_categories.where(name: school_category.name).blank?
|
||||
if school.school_categories.for(school_category.school, school_category.category).blank?
|
||||
school_category.update(school_id: school.id)
|
||||
else
|
||||
else
|
||||
school_category.destroy
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue