Skip to content

Commit

Permalink
Adding flavor on VM as VM belongs to Flavour
Browse files Browse the repository at this point in the history
Fixes BZ: #17692
  • Loading branch information
Julian Cheal committed Jul 18, 2018
1 parent a572b1a commit fdc4166
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 fdc4166

Please sign in to comment.