diff options
Diffstat (limited to 'db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb')
-rw-r--r-- | db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb b/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb index 139097399a6..ed7b1fc72f4 100644 --- a/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb +++ b/db/post_migrate/20180212102028_remove_tmp_partial_null_index_from_builds.rb @@ -4,11 +4,11 @@ class RemoveTmpPartialNullIndexFromBuilds < ActiveRecord::Migration disable_ddl_transaction! def up - remove_concurrent_index_by_name(:ci_builds, 'tmp_stage_id_partial_null_index') + remove_concurrent_index_by_name(:ci_builds, 'tmp_id_partial_null_index') end def down - add_concurrent_index(:ci_builds, :stage_id, where: 'stage_id IS NULL', - name: 'tmp_stage_id_partial_null_index') + add_concurrent_index(:ci_builds, :id, where: 'stage_id IS NULL', + name: 'tmp_id_partial_null_index') end end |