summaryrefslogtreecommitdiff
path: root/app/models/project_custom_attribute.rb
blob: 8d3d45715ca0ec7f7c73a96c4f215393d45ce9c0 (plain)
1
2
3
4
5
6
7
8
9
10
# 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