blob: a65027733e99788f3e580cf324435d96964fd6a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class Namespace::Detail < ApplicationRecord
include IgnorableColumns
ignore_column :dashboard_notification_at, remove_with: '16.5', remove_after: '2023-08-22'
ignore_column :dashboard_enforcement_at, remove_with: '16.5', remove_after: '2023-08-22'
ignore_column :next_over_limit_check_at, remove_with: '16.5', remove_after: '2023-08-22'
ignore_column :free_user_cap_over_limit_notified_at, remove_with: '16.5', remove_after: '2023-08-22'
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
|