Skip to content

Commit

Permalink
Merge pull request #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 simaishi committed May 29, 2018
1 parent 0a950ab commit 5b62d01
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 @@ -55,6 +55,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 5b62d01

Please sign in to comment.