Skip to content

Commit

Permalink
Merge pull request ManageIQ#17242 from bzwei/template_and_request
Browse files Browse the repository at this point in the history
Add has_many :miq_requests in ServiceTemplate

(cherry picked from commit b452c96)
  • Loading branch information
bdunne authored and agrare committed May 25, 2018
1 parent d4af650 commit e7994ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/service_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class ServiceTemplate < ApplicationRecord

has_many :dialogs, -> { distinct }, :through => :resource_actions

has_many :miq_requests, :as => :source, :dependent => :nullify

virtual_column :type_display, :type => :string
virtual_column :template_valid, :type => :boolean
virtual_column :template_valid_error_message, :type => :string
Expand Down

0 comments on commit e7994ff

Please sign in to comment.