-
Notifications
You must be signed in to change notification settings - Fork 900
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
Adding Firmwares migration #14025
Adding Firmwares migration #14025
Conversation
@juliancheal Cannot apply the following label because they are not recognized: sql migrations |
@miq-bot add_label sql migration |
920bcbf
to
2e93737
Compare
@miq-bot remove_label wip |
The rational for this is that many hardware types require firmware metadata. For example, physical_server (via guest_device), disks, switches, etc. Firmware is polymorphic so that we can ask questions like, Give me all the firmwares of type x that are running non-compliant firmware. We tried to fit firmware into Operating System, or as extra fields on Guest Device, but it feels like it should be its own thing.
2e93737
to
016fe61
Compare
@Fryguy could you review this? |
955f10e
to
0a4459b
Compare
t.bigint :resource_id | ||
t.string :resource_type | ||
t.timestamps | ||
t.index %w(resource_id resource_type), :name => "index_firmwares_on_resource_id_and_resource_type", :using => :btree |
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.
I think the :using
piece is not necessary as that's the default. Curious why you need the name either. If that's the default, cause you remove that as well?
@Fryguy removed params on index. |
3bb0e15
to
f2cb5b0
Compare
Checked commits juliancheal/manageiq@016fe61~...f2cb5b0 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@juliancheal @Fryguy, is this good to go? |
@sergio-ocon for me I believe so yes. |
The rational for this is that many hardware types require firmware
metadata. For example,
physical_server
(viaguest_device
),disks
,switches
, etc.Firmware is polymorphic so that we can ask questions like,
Give me all the firmwares of type x that are running non-compliant
firmware.
We tried to fit firmware into
Operating System
, or as extra fieldson
Guest Device
, but it feels like it should be its own thing.