diff --git a/app/models/foreman_acd/app_definition.rb b/app/models/foreman_acd/app_definition.rb index 0c00e911..0d5be89e 100644 --- a/app/models/foreman_acd/app_definition.rb +++ b/app/models/foreman_acd/app_definition.rb @@ -11,7 +11,7 @@ class AppDefinition < ApplicationRecord self.table_name = 'acd_app_definitions' validates :name, :presence => true, :uniqueness => true - validates :ansible_playbook, :presence => true + validates :ansible_playbook, :presence => false has_many :app_instances, :inverse_of => :app_definition, :dependent => :destroy belongs_to :ansible_playbook, :inverse_of => :app_definitions, :foreign_key => :acd_ansible_playbook_id scoped_search :on => :name