diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-01 15:30:44 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-01 15:30:44 +0300 |
commit | 0fd0b64be63c18bb216f15d887e3ce0955dcf269 (patch) | |
tree | f62cd1d970ba738ef0825f745c4c44714a6b126e /db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb | |
parent | b337a086d5118e80518945abfc2e88008d9fc1ec (diff) |
Use stages position column to track stage index
Diffstat (limited to 'db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb')
-rw-r--r-- | db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb b/db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb index c07d1c69a81..ee82c70ecf8 100644 --- a/db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb +++ b/db/migrate/20180417101040_add_tmp_stage_priority_index_to_ci_builds.rb @@ -7,10 +7,10 @@ class AddTmpStagePriorityIndexToCiBuilds < ActiveRecord::Migration def up add_concurrent_index(:ci_builds, [:stage_id, :stage_idx], - where: 'stage_idx IS NOT NULL', name: 'tmp_build_stage_priority_index') + where: 'stage_idx IS NOT NULL', name: 'tmp_build_stage_position_index') end def down - remove_concurrent_index_by_name(:ci_builds, 'tmp_build_stage_priority_index') + remove_concurrent_index_by_name(:ci_builds, 'tmp_build_stage_position_index') end end |