Skip to content
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

Merged
merged 1 commit into from
Aug 13, 2018
Merged

Conversation

EsdrasVP
Copy link
Member

@EsdrasVP EsdrasVP commented Jul 12, 2018

This PR is able to:

  • Add PhysicalDisks model
  • Create a relationship between PhysicalDisks and PhysicalStorages

Depends on:

@EsdrasVP EsdrasVP changed the title Save Storage Drivers Model [WIP] Save Storage Drivers Model Jul 12, 2018
@miq-bot miq-bot added the wip label Jul 12, 2018
@EsdrasVP EsdrasVP changed the title [WIP] Save Storage Drivers Model Save Storage Drivers Model Jul 12, 2018
@miq-bot miq-bot removed the wip label Jul 12, 2018
@EsdrasVP EsdrasVP changed the title Save Storage Drivers Model Save Physical Disks Model Jul 26, 2018
@@ -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
Copy link
Member

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 ?

Copy link
Member Author

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.

@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2018

Checked commit EsdrasVP@9d8e755 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🏆

@agrare agrare merged commit 5420771 into ManageIQ:master Aug 13, 2018
@agrare agrare added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants