2018-12-23 12:14:25 +05:30
|
|
|
class AddIndexToCiJobArtifactsFileStore < ActiveRecord::Migration[4.2]
|
2018-05-09 12:01:36 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index :ci_job_artifacts, :file_store
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-11-18 11:00:15 +05:30
|
|
|
# rubocop:disable Migration/RemoveIndex
|
2018-05-09 12:01:36 +05:30
|
|
|
remove_index :ci_job_artifacts, :file_store if index_exists?(:ci_job_artifacts, :file_store)
|
|
|
|
end
|
|
|
|
end
|