debian-mirror-gitlab/app/models/project_snippet.rb

9 lines
174 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
class ProjectSnippet < Snippet
belongs_to :project
validates :project, presence: true
2020-01-01 13:55:28 +05:30
validates :secret, inclusion: { in: [false] }
2014-09-02 18:07:02 +05:30
end