Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20160412173418_add_ci_commit_indexes.rb')
-rw-r--r--db/migrate/20160412173418_add_ci_commit_indexes.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20160412173418_add_ci_commit_indexes.rb b/db/migrate/20160412173418_add_ci_commit_indexes.rb
deleted file mode 100644
index 709e6b84d57..00000000000
--- a/db/migrate/20160412173418_add_ci_commit_indexes.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# rubocop:disable all
-class AddCiCommitIndexes < ActiveRecord::Migration[4.2]
- disable_ddl_transaction!
-
- def change
- add_index :ci_commits, [:gl_project_id, :sha], index_options
- add_index :ci_commits, [:gl_project_id, :status], index_options
- add_index :ci_commits, [:status], index_options
- end
-
- private
-
- def index_options
- if Gitlab::Database.postgresql?
- { algorithm: :concurrently }
- else
- { }
- end
- end
-end