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

class ProjectCustomAttribute < ActiveRecord::Base
  belongs_to :project

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