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 <cody@instructure.com> QA-Review: August Thornton <august@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> Tested-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
parent
660de14060
commit
ef1cc3186f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue