-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save Physical Disks Model #17700
Save Physical Disks Model #17700
Conversation
6351aba
to
4e4d8ef
Compare
4e4d8ef
to
2260e6f
Compare
app/models/physical_storage.rb
Outdated
@@ -9,6 +9,8 @@ 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 => false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EsdrasVP why not specify :inverse_of => :physical_storage
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agrare Changed here, I asked @CharlleDaniel about what exactly happens with a :inverse_of
and he clarified me.
2260e6f
to
9d8e755
Compare
Checked commit EsdrasVP@9d8e755 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
This PR is able to:
Depends on:
ManageIQ/manageiq-schema#233 - Merged