From ef1cc3186f3d4bc1e98fb71143d0403f65a7e0c5 Mon Sep 17 00:00:00 2001 From: Nick Cloward Date: Thu, 1 May 2014 09:40:33 -0600 Subject: [PATCH] make migration non transactional refs: CNVS-11546 Test Case: Migration should work. Change-Id: Ic3a2c18ef4e4f25327a49ba98ecc3e810d6186cb Reviewed-on: https://gerrit.instructure.com/34140 Reviewed-by: Cody Cutrer QA-Review: August Thornton Product-Review: Cody Cutrer Tested-by: Brian Palmer --- db/migrate/20140303160957_add_user_to_sis_batches.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/migrate/20140303160957_add_user_to_sis_batches.rb b/db/migrate/20140303160957_add_user_to_sis_batches.rb index 9ffe704e9d6..add0bde7a20 100644 --- a/db/migrate/20140303160957_add_user_to_sis_batches.rb +++ b/db/migrate/20140303160957_add_user_to_sis_batches.rb @@ -1,9 +1,10 @@ class AddUserToSisBatches < ActiveRecord::Migration tag :predeploy + disable_ddl_transaction! def self.up add_column :sis_batches, :user_id, :integer, :limit => 8 - add_foreign_key :sis_batches, :users + add_foreign_key :sis_batches, :users, delay_validation: true end def self.down