diff options
Diffstat (limited to 'db/post_migrate/20191218225624_add_index_on_project_id_to_ci_pipelines.rb')
-rw-r--r-- | db/post_migrate/20191218225624_add_index_on_project_id_to_ci_pipelines.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/db/post_migrate/20191218225624_add_index_on_project_id_to_ci_pipelines.rb b/db/post_migrate/20191218225624_add_index_on_project_id_to_ci_pipelines.rb deleted file mode 100644 index ab6c3b0616a..00000000000 --- a/db/post_migrate/20191218225624_add_index_on_project_id_to_ci_pipelines.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -class AddIndexOnProjectIdToCiPipelines < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - INDEX_NAME = 'index_ci_pipelines_on_project_id_and_id_desc' - - disable_ddl_transaction! - - def up - add_concurrent_index :ci_pipelines, [:project_id, :id], name: INDEX_NAME, order: { id: :desc } - end - - def down - remove_concurrent_index :ci_pipelines, [:project_id, :id], name: INDEX_NAME, order: { id: :desc } - end -end |