debian-mirror-gitlab/db/migrate/20180418053107_add_index_to_ci_job_artifacts_file_store.rb

17 lines
399 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +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