Skip to content

Commit

Permalink
Separate index for ContainerVolume and PersistentVolume
Browse files Browse the repository at this point in the history
Separate index for ContainerVolume and PersistentVolume
  • Loading branch information
Ladas committed May 10, 2018
1 parent 5edeb5e commit 94cd6e5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,14 @@ def change
:unique => true,
:name => "index_container_template_parameters_unique_multi_column"
add_index :container_volumes,
%i(parent_id parent_type ems_ref name),
%i(parent_id parent_type name ems_ref),
:unique => true,
:name => "index_container_volumes_unique_multi_column"
:name => "index_container_volumes_unique_without_name"
add_index :container_volumes,
%i(parent_id parent_type name),
:where => "ems_ref IS NULL",
:unique => true,
:name => "index_container_volumes_unique_without_ems_ref"
add_index :custom_attributes,
%i(resource_id resource_type name section source),
:unique => true,
Expand Down

0 comments on commit 94cd6e5

Please sign in to comment.