rails 5: fix update_all with joins
rails 5: fix update_all with joins

refs CNVS-34862

Change-Id: If94c3ad82035a4d92f1f8811ee91b46701bc7abd
Reviewed-on: https://gerrit.instructure.com/102248
Tested-by: Jenkins
Reviewed-by: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
QA-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

sfu/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,SwinburneOnline/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,SwinburneOnline/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,venturehive/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,instructure/canvas-lms