Commit 4ffc2a71 authored by Shinya Maeda's avatar Shinya Maeda

Revert add action follow up 2

parent 16fc61d6
...@@ -8,8 +8,6 @@ class AddIndexToDeployments < ActiveRecord::Migration ...@@ -8,8 +8,6 @@ class AddIndexToDeployments < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def up 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, :id]
add_concurrent_index :deployments, [:project_id, :status, :iid] add_concurrent_index :deployments, [:project_id, :status, :iid]
add_concurrent_index :deployments, [:environment_id, :status, :id] add_concurrent_index :deployments, [:environment_id, :status, :id]
...@@ -18,8 +16,6 @@ class AddIndexToDeployments < ActiveRecord::Migration ...@@ -18,8 +16,6 @@ class AddIndexToDeployments < ActiveRecord::Migration
end end
def down 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, :id]
remove_concurrent_index :deployments, [:project_id, :status, :iid] remove_concurrent_index :deployments, [:project_id, :status, :iid]
remove_concurrent_index :deployments, [:environment_id, :status, :id] remove_concurrent_index :deployments, [:environment_id, :status, :id]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment