feat(administrateur): add environment variable for Administrateur::UNUSED_ADMIN_THRESHOLD
This commit is contained in:
parent
1dfb3817e6
commit
243b8c239a
3 changed files with 16 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
# user_id :bigint not null
|
||||
#
|
||||
class Administrateur < ApplicationRecord
|
||||
UNUSED_ADMIN_THRESHOLD = 6.months
|
||||
UNUSED_ADMIN_THRESHOLD = ENV.fetch('UNUSED_ADMIN_THRESHOLD') { 6 }.to_i.months
|
||||
|
||||
has_and_belongs_to_many :instructeurs
|
||||
has_many :administrateurs_procedures
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue