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:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-06-02 13:46:08 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-06-05 09:06:35 +0300
commit85a7e0813e9806ad3eb853e4a48c09ae5f78f94c (patch)
treedb7d77148d74f600b4d7e79c568afd816b9f1b9a /db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb
parent800d3b88c78ee7a98fa41f3a1628c6c2a6d12a68 (diff)
Support rails5 in postgres indexes function and fix some migrations
Diffstat (limited to 'db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb')
-rw-r--r--db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb b/db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb
index e4bed778695..08784de4043 100644
--- a/db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb
+++ b/db/migrate/20171106155656_turn_issues_due_date_index_to_partial_index.rb
@@ -20,9 +20,7 @@ class TurnIssuesDueDateIndexToPartialIndex < ActiveRecord::Migration
name: NEW_INDEX_NAME
)
- # We set the column name to nil as otherwise Rails will ignore the custom
- # index name and remove the wrong index.
- remove_concurrent_index(:issues, nil, name: OLD_INDEX_NAME)
+ remove_concurrent_index_by_name(:issues, OLD_INDEX_NAME)
end
def down
@@ -32,6 +30,6 @@ class TurnIssuesDueDateIndexToPartialIndex < ActiveRecord::Migration
name: OLD_INDEX_NAME
)
- remove_concurrent_index(:issues, nil, name: NEW_INDEX_NAME)
+ remove_concurrent_index_by_name(:issues, NEW_INDEX_NAME)
end
end