From 22aa04a5acd51e9fe604972d8b2ee03642f21b20 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 13 Sep 2022 15:57:17 +0400 Subject: [PATCH] exposed prefixed ids for projects table [SCI_7172] --- app/models/project.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index f0266549b..30cd365d8 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Project < ApplicationRecord include ArchivableModel include SearchableModel @@ -7,7 +9,7 @@ class Project < ApplicationRecord include PermissionExtends include Assignable - ID_PREFIX = 'PR'.freeze + ID_PREFIX = 'PR' include PrefixedIdModel enum visibility: { hidden: 0, visible: 1 }