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:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-20 18:40:32 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-02-20 18:40:48 +0300
commitef077fd9fd0f9d5d72cd0297c4225552464f5ca7 (patch)
treee5788702fada3abcbaee6caf9e174d13389165f7 /db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb
parente0a331aecb7bf6795a753cb23542a3c704d40c31 (diff)
Simplify down migration.
Diffstat (limited to 'db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb')
-rw-r--r--db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb b/db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb
index c8ebabbe627..cedf2510dda 100644
--- a/db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb
+++ b/db/migrate/20180213131630_add_partial_index_to_projects_for_index_only_scans.rb
@@ -15,7 +15,7 @@ class AddPartialIndexToProjectsForIndexOnlyScans < ActiveRecord::Migration
def down
if index_exists?(:projects, :id, name: INDEX_NAME)
- remove_concurrent_index :projects, :id, name: INDEX_NAME, unique: true, where: 'visibility_level IN (10,20)'
+ remove_concurrent_index_by_name :projects, INDEX_NAME
end
end
end