2018-11-13 07:27:31 +00:00
|
|
|
class AddIndexToCiJobArtifactsFileStore < ActiveRecord::Migration[4.2]
|
2018-04-18 05:52:31 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index :ci_job_artifacts, :file_store
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-07-25 08:59:23 +00:00
|
|
|
# rubocop:disable Migration/RemoveIndex
|
2018-04-18 05:52:31 +00:00
|
|
|
remove_index :ci_job_artifacts, :file_store if index_exists?(:ci_job_artifacts, :file_store)
|
|
|
|
end
|
|
|
|
end
|