mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-21 23:37:47 +00:00
11 lines
234 B
Ruby
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
|