Commit cd68506c authored by mo khan's avatar mo khan Committed by Ash McKenzie

Apply suggestion to ee/app/models/software_license_policy.rb

parent 9f9815f2
......@@ -28,7 +28,7 @@ class SoftwareLicensePolicy < ApplicationRecord
validates_presence_of :project
validates :classification, presence: true
# A license is unique for its project since it can't be approved and blocklisted.
# A license is unique for its project since it can't be approved and denied.
validates :software_license, uniqueness: { scope: :project_id }
scope :ordered, -> { SoftwareLicensePolicy.includes(:software_license).order("software_licenses.name ASC") }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment