summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-07 14:38:24 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-07 14:38:24 +0900
commit4ffc2a7111580af20a9748e39e89df840432b3cf (patch)
tree1f9bc8a6921a452c15cfc68e56032ee4516bb331 /db
parent16fc61d6147c243a17c79faee578a5d286617fb4 (diff)
downloadgitlab-ce-4ffc2a7111580af20a9748e39e89df840432b3cf.tar.gz
Revert add action follow up 2
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20181106135939_add_index_to_deployments.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/db/migrate/20181106135939_add_index_to_deployments.rb b/db/migrate/20181106135939_add_index_to_deployments.rb
index 999c4a9e575..0b840999de3 100644
--- a/db/migrate/20181106135939_add_index_to_deployments.rb
+++ b/db/migrate/20181106135939_add_index_to_deployments.rb
@@ -8,8 +8,6 @@ class AddIndexToDeployments < ActiveRecord::Migration
disable_ddl_transaction!
def up
- remove_concurrent_index :deployments, [:project_id, :status]
- remove_concurrent_index :deployments, [:environment_id, :status]
add_concurrent_index :deployments, [:project_id, :status, :id]
add_concurrent_index :deployments, [:project_id, :status, :iid]
add_concurrent_index :deployments, [:environment_id, :status, :id]
@@ -18,8 +16,6 @@ class AddIndexToDeployments < ActiveRecord::Migration
end
def down
- add_concurrent_index :deployments, [:project_id, :status]
- add_concurrent_index :deployments, [:environment_id, :status]
remove_concurrent_index :deployments, [:project_id, :status, :id]
remove_concurrent_index :deployments, [:project_id, :status, :iid]
remove_concurrent_index :deployments, [:environment_id, :status, :id]