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

8 lines
174 B
Ruby

# frozen_string_literal: true
class ProjectSnippet < Snippet
belongs_to :project
validates :project, presence: true
validates :secret, inclusion: { in: [false] }
end