diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20181106135939_add_index_to_deployments.rb | 4 |
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] |