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
  • Loading branch information
gtanzillo authored Jul 18, 2018
2 parents 446b554 + fdc4166 commit fb7a26d
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 @@ -65,6 +65,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 fb7a26d

Please sign in to comment.