Skip to content

Commit

Permalink
container_component_statuses table was removed
Browse files Browse the repository at this point in the history
container_component_statuses table was removed
  • Loading branch information
Ladas committed Nov 13, 2017
1 parent f187f9e commit a3242b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class ContainerService < ActiveRecord::Base; end
class ContainerTemplate < ActiveRecord::Base; end
class PersistentVolumeClaim < ActiveRecord::Base; end

class ContainerComponentStatus < ActiveRecord::Base; end
class ContainerImage < ActiveRecord::Base; end
class ContainerImageRegistry < ActiveRecord::Base; end

Expand Down Expand Up @@ -61,7 +60,6 @@ def cleanup_duplicate_data_delete_all(model, unique_index_columns)
ContainerTemplate => [:ems_id, :ems_ref],
PersistentVolumeClaim => [:ems_id, :ems_ref],
# Having :ems_id but not ems_ref
ContainerComponentStatus => [:ems_id, :name],
ContainerImage => [:ems_id, :image_ref],
ContainerImageRegistry => [:ems_id, :host, :port],
# Nested tables, not having :ems_id and the foreign_key is a part of the unique index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ def change
add_index :persistent_volume_claims, [:ems_id, :ems_ref], :unique => true

# Having :ems_id but not ems_ref
add_index :container_component_statuses,
[:ems_id, :name],
:unique => true
add_index :container_images,
[:ems_id, :image_ref],
:unique => true,
Expand Down

0 comments on commit a3242b0

Please sign in to comment.