mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Remove occurrencies of Setting.x
This commit is contained in:
parent
4c9fc76283
commit
49f11cce0b
4 changed files with 5 additions and 11 deletions
|
@ -1,9 +1,11 @@
|
|||
class AddLegalDocumentMandatorySetting < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
Setting.legal_document_is_mandatory = true
|
||||
Setting.create(code: 'legal_document_is_mandatory',
|
||||
value: 'true', format: 'boolean',
|
||||
group: 'domain_validation')
|
||||
end
|
||||
|
||||
def down
|
||||
Setting.find_by(var: 'legal_document_is_mandatory').delete
|
||||
Setting.find_by(code: 'legal_document_is_mandatory').destroy
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue