canvas-lms/lib/data_fixup/initialize_submission_cache...

8 lines
189 B
Ruby

module DataFixup::InitializeSubmissionCachedDueDate
def self.run
Assignment.find_ids_in_ranges do |min, max|
DueDateCacher.recompute_batch(min.to_i..max.to_i)
end
end
end