Skip to content

Commit

Permalink
Merge pull request #17692 from juliancheal/filter_by_flavor_api
Browse files Browse the repository at this point in the history
Adding flavor as a has one on VM
(cherry picked from commit fb7a26d)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1607441
  • Loading branch information
gtanzillo authored and simaishi committed Jul 23, 2018
1 parent ea280b5 commit 54ec113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class VmOrTemplate < ApplicationRecord
has_many :disks, :through => :hardware
belongs_to :host
belongs_to :ems_cluster
belongs_to :flavor

belongs_to :storage
has_and_belongs_to_many :storages, :join_table => 'storages_vms_and_templates'
Expand Down

0 comments on commit 54ec113

Please sign in to comment.