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

detail.rb « namespace « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5e850830bc14964ab7dc3136752e341b55eed42 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class Namespace::Detail < ApplicationRecord
  belongs_to :namespace, inverse_of: :namespace_details
  validates :namespace, presence: true
  validates :description, length: { maximum: 255 }

  self.primary_key = :namespace_id
end

Namespace::Detail.prepend_mod