summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb2
1 files changed, 1 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 d896bb52347..1962c16d84a 100644
--- a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
+++ b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
@@ -6,8 +6,8 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration
disable_ddl_transaction!
def up(attempts: 100)
- remove_outdated_index!
remove_redundant_pipeline_stages!
+ remove_outdated_index!
add_unique_index!
rescue ActiveRecord::RecordNotUnique
retry if (attempts -= 1) > 0