Created
June 26, 2021 13:08
-
-
Save manoelneto/e1c21b80de5f4557833af3216da7d905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_associated_rubrics | |
updateable_rubrics.in_batches(of: 100).each do |relation| | |
relation.transaction do | |
relation.lock.each do |rubric| | |
rubric.update_learning_outcome_criteria(self) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment