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:
Cameron Matheson 2016-01-20 13:23:16 -07:00
parent feab022740
commit 22635c78a8
1 changed files with 8 additions and 0 deletions

View File

@ -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