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 Feb 14, 2018
1 parent 5aed86c commit 37e127c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@ 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 ems_ref),
:where => "name IS NULL",
: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),
:where => "unique_name IS NULL",
Expand Down

0 comments on commit 37e127c

Please sign in to comment.