gitlab-org--gitlab-foss/app/models/project_custom_attribute.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
213 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ProjectCustomAttribute < ApplicationRecord
2017-09-18 13:03:24 +00:00
belongs_to :project
validates :project, :key, :value, presence: true
validates :key, uniqueness: { scope: [:project_id] }
end