From d4eb9eaa3d0fbb542885c148069aa5f400c4f184 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 13 Aug 2018 15:53:42 -0300 Subject: [PATCH] Fix Physical Storage to Physical Disks inverse association --- app/models/physical_storage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/physical_storage.rb b/app/models/physical_storage.rb index 29efe4cb0d4..e7f76400fb9 100644 --- a/app/models/physical_storage.rb +++ b/app/models/physical_storage.rb @@ -9,7 +9,7 @@ class PhysicalStorage < ApplicationRecord has_one :asset_detail, :as => :resource, :dependent => :destroy, :inverse_of => false has_many :guest_devices, :through => :hardware - has_many :physical_disks, :dependent => :destroy, :inverse_of => :physical_storages + has_many :physical_disks, :dependent => :destroy, :inverse_of => :physical_storage def my_zone ems = ext_management_system