Welcome to mirror list, hosted at ThFree Co, Russian Federation.

protected_tag.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 301fe2092e91df0b5a9beab4396fe71c0fa8dd35 (plain)
1
2
3
4
5
6
7
8
9
10
class ProtectedTag < ActiveRecord::Base
  include Gitlab::ShellAdapter
  include ProtectedRef

  has_many :push_access_levels, dependent: :destroy

  validates :push_access_levels, length: { is: 1, message: "are restricted to a single instance per protected tag." }

  accepts_nested_attributes_for :push_access_levels
end