Files
gitlab-ce/app/models/project_custom_attribute.rb
2023-04-25 12:18:56 +00:00

11 lines
234 B
Ruby

# frozen_string_literal: true
class ProjectCustomAttribute < ApplicationRecord
include EachBatch
belongs_to :project
validates :project, :key, :value, presence: true
validates :key, uniqueness: { scope: [:project_id] }
end