add index on content_migrations.context_id
Change-Id: I6a2f65a3f316806aa69adf0c54411e1ab35d25ca Reviewed-on: https://gerrit.instructure.com/23523 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Jacob Fugal <jacob@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
023bb02762
commit
18b660231a
|
@ -0,0 +1,12 @@
|
|||
class AddContentMigrationIndex < ActiveRecord::Migration
|
||||
tag :postdeploy
|
||||
self.transactional = false
|
||||
|
||||
def self.up
|
||||
add_index :content_migrations, :context_id, concurrently: true
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :content_migrations, :context_id
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue