2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-18 09:03:24 -04:00
|
|
|
class ProjectCustomAttribute < ActiveRecord::Base
|
|
|
|
belongs_to :project
|
|
|
|
|
|
|
|
validates :project, :key, :value, presence: true
|
|
|
|
validates :key, uniqueness: { scope: [:project_id] }
|
|
|
|
end
|