Skip to content

Commit

Permalink
Merge pull request #15495 from d-m-u/unique_pxe_customization_templat…
Browse files Browse the repository at this point in the history
…e_name

Checks PXE customization templates for unique names
  • Loading branch information
gmcculloug authored Jul 6, 2017
2 parents 803a4e3 + 789ddfc commit aca086c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/customization_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CustomizationTemplate < ApplicationRecord
has_many :pxe_images, :through => :pxe_image_type

validates :pxe_image_type, :presence => true, :unless => :system?
# validates :name, :uniqueness => { :scope => :pxe_image_type }
validates :name, :uniqueness => { :scope => :pxe_image_type }, :unique_within_region => true

def self.seed_file_name
@seed_file_name ||= Rails.root.join("db", "fixtures", "#{table_name}.yml")
Expand Down

0 comments on commit aca086c

Please sign in to comment.