mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
exposed prefixed ids for projects table [SCI_7172]
This commit is contained in:
parent
133302964c
commit
22aa04a5ac
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Project < ApplicationRecord
|
class Project < ApplicationRecord
|
||||||
include ArchivableModel
|
include ArchivableModel
|
||||||
include SearchableModel
|
include SearchableModel
|
||||||
|
@ -7,7 +9,7 @@ class Project < ApplicationRecord
|
||||||
include PermissionExtends
|
include PermissionExtends
|
||||||
include Assignable
|
include Assignable
|
||||||
|
|
||||||
ID_PREFIX = 'PR'.freeze
|
ID_PREFIX = 'PR'
|
||||||
include PrefixedIdModel
|
include PrefixedIdModel
|
||||||
|
|
||||||
enum visibility: { hidden: 0, visible: 1 }
|
enum visibility: { hidden: 0, visible: 1 }
|
||||||
|
|
Loading…
Reference in a new issue