debian-mirror-gitlab/app/models/project_custom_attribute.rb
2023-07-09 08:55:56 +05:30

10 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