Skip to content

Commit

Permalink
Fix Physical Storage to Physical Disks inverse association
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasVP committed Aug 13, 2018
1 parent 68e9e3b commit d4eb9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/physical_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4eb9ea

Please sign in to comment.