summaryrefslogtreecommitdiff
path: root/app/models/project_custom_attribute.rb
blob: b0da586988a4dfd5ac1dabe86c10f3f63c8da3ae (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class ProjectCustomAttribute < ApplicationRecord
  belongs_to :project

  validates :project, :key, :value, presence: true
  validates :key, uniqueness: { scope: [:project_id] }
end