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/20180306134842_add_missing_indexes_acts_as_taggable_on_engine.rb')
-rw-r--r--db/migrate/20180306134842_add_missing_indexes_acts_as_taggable_on_engine.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20180306134842_add_missing_indexes_acts_as_taggable_on_engine.rb b/db/migrate/20180306134842_add_missing_indexes_acts_as_taggable_on_engine.rb
deleted file mode 100644
index b400ff94dbe..00000000000
--- a/db/migrate/20180306134842_add_missing_indexes_acts_as_taggable_on_engine.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# This migration comes from acts_as_taggable_on_engine (originally 6)
-#
-# It has been modified to handle no-downtime GitLab migrations. Several
-# indexes have been removed since they are not needed for GitLab.
-class AddMissingIndexesActsAsTaggableOnEngine < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :taggings, :tag_id unless index_exists? :taggings, :tag_id
- add_concurrent_index :taggings, [:taggable_id, :taggable_type] unless index_exists? :taggings, [:taggable_id, :taggable_type]
- end
-
- def down
- remove_concurrent_index :taggings, :tag_id
- remove_concurrent_index :taggings, [:taggable_id, :taggable_type]
- end
-end