debian-mirror-gitlab/app/models/namespace/detail.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
423 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
class Namespace::Detail < ApplicationRecord
2022-11-25 23:54:43 +05:30
include IgnorableColumns
ignore_column :free_user_cap_over_limt_notified_at, remove_with: '15.7', remove_after: '2022-11-22'
2022-08-27 11:52:29 +05:30
belongs_to :namespace, inverse_of: :namespace_details
validates :namespace, presence: true
validates :description, length: { maximum: 255 }
self.primary_key = :namespace_id
end
2023-04-23 21:23:45 +05:30
Namespace::Detail.prepend_mod