summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-20 16:40:32 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-02-20 16:40:48 +0100
commitef077fd9fd0f9d5d72cd0297c4225552464f5ca7 (patch)
treee5788702fada3abcbaee6caf9e174d13389165f7 /db
parente0a331aecb7bf6795a753cb23542a3c704d40c31 (diff)
downloadgitlab-ce-ef077fd9fd0f9d5d72cd0297c4225552464f5ca7.tar.gz
Simplify down migration.
Diffstat (limited to 'db')
-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