Skip to content

Commit

Permalink
Add has_many :miq_requests in ServiceTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Apr 4, 2018
1 parent 1b18fb1 commit 5cd8957
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, :inverse_of => :source

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 5cd8957

Please sign in to comment.