debian-mirror-gitlab/app/models/project_snippet.rb
2020-04-22 19:07:51 +05:30

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