diff --git a/app/models/custom_tab.rb b/app/models/custom_tab.rb index 22058efcc1..321ae0a5a2 100644 --- a/app/models/custom_tab.rb +++ b/app/models/custom_tab.rb @@ -1,7 +1,9 @@ # frozen_string_literal: false class CustomTab < ApplicationRecord - belongs_to :enterprise, optional: false + self.belongs_to_required_by_default = true + + belongs_to :enterprise validates :title, presence: true, length: { maximum: 20 } end