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
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-06 11:58:50 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-06 11:58:50 +0300
commite178135d57a9b06788878721316d00efa77ac4a4 (patch)
tree6411d3ab00532a22d41091cdc70168e305a0008f /db
parent066d4deaed3d8698a9d1decd138871528cecc4af (diff)
Add more specs for unique stages index migration
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
index 9644cfabb60..6783b717543 100644
--- a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
+++ b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
@@ -11,7 +11,10 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration
add_unique_index!
rescue ActiveRecord::RecordNotUnique
retry if (attempts -= 1) > 0
- raise
+ raise StandardError, <<~EOS
+ Failed to add an unique index to ci_stages, despite retrying the
+ migration 100 times. See gitlab-org/gitlab-ce!16580.
+ EOS
end
def down