trying to get data to load

This commit is contained in:
Jared Cosulich 2017-10-15 21:48:21 -04:00
parent b58bca6012
commit 62a9f9c194
2 changed files with 3 additions and 2 deletions

View file

@ -69,6 +69,7 @@ class Attempt < ApplicationRecord
private
def update_school_categories
return if ENV['BULK_PROCESS']
school_category = SchoolCategory.for(recipient.school, question.category).first
if school_category.nil?
school_category = SchoolCategory.create(school: recipient.school, category: question.category)