mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Flush settings cache on legal doc mandatority check
This commit is contained in:
parent
a80e813632
commit
4a2176d5d7
6 changed files with 63 additions and 2 deletions
|
@ -0,0 +1,9 @@
|
|||
class AddLegalDocumentMandatorySetting < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
Setting.legal_document_is_mandatory = true
|
||||
end
|
||||
|
||||
def down
|
||||
Setting.find_by(var: 'legal_document_is_mandatory').delete
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue