remove bad foreign keys from canvadocs_submissions
fixes CNVS-26068 fixes CNVS-26463 The crocodoc_document/canvadoc may live on another shard, so we can't use foreign keys for those columns Change-Id: Ief6ae9c70d3b7eea79c108d40a544ded7235b8b1 Reviewed-on: https://gerrit.instructure.com/70698 Tested-by: Jenkins Reviewed-by: Spencer Olson <solson@instructure.com> QA-Review: Spencer Olson <solson@instructure.com> Product-Review: Cameron Matheson <cameron@instructure.com>
This commit is contained in:
parent
feab022740
commit
22635c78a8
|
@ -0,0 +1,8 @@
|
|||
class RemoveProblemFksFromCanvadocsSubmissions < ActiveRecord::Migration
|
||||
tag :predeploy
|
||||
|
||||
def change
|
||||
remove_foreign_key :canvadocs_submissions, :canvadoc
|
||||
remove_foreign_key :canvadocs_submissions, :crocodoc_document
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue