Skip to content

Commit

Permalink
[#375] removed unnecessary validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Stepanov authored and antlu committed Feb 6, 2023
1 parent b7e9ab6 commit 4cc07f0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/app/lib/uffizzi_core/concerns/models/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module UffizziCore::Concerns::Models::Template
enumerize :creation_source, in: [:manual, :compose_file, :system], predicates: true, scope: true

validates :name, presence: true
validates :name, uniqueness: { scope: :project }, if: -> { compose_file.blank? || compose_file.kind.main? }

def valid_containers_memory_limit?
containers_attributes = payload['containers_attributes']
Expand Down

0 comments on commit 4cc07f0

Please sign in to comment.