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
  • Loading branch information
bdunne authored Apr 5, 2018
2 parents f66dac0 + 2bd37e2 commit b452c96
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 b452c96

Please sign in to comment.