reset shard value in scopes

Change-Id: I461a231ed326d8f741ff0a79489be05dc3355587
Reviewed-on: https://gerrit.instructure.com/29390
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
translate foreign keys when replacing belongs_to record

Change-Id: I2b7c8774073596e2b71adc39a82a49c0e7e1414e
Reviewed-on: https://gerrit.instructure.com/29521
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>