diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-06 09:58:50 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-06 09:58:50 +0100 |
commit | e178135d57a9b06788878721316d00efa77ac4a4 (patch) | |
tree | 6411d3ab00532a22d41091cdc70168e305a0008f /db | |
parent | 066d4deaed3d8698a9d1decd138871528cecc4af (diff) | |
download | gitlab-ce-e178135d57a9b06788878721316d00efa77ac4a4.tar.gz |
Add more specs for unique stages index migration
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb | 5 |
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 |