Remove occurrencies of Setting.x

This commit is contained in:
Karl Erik Õunapuu 2020-08-12 11:45:51 +03:00
parent 4c9fc76283
commit 49f11cce0b
4 changed files with 5 additions and 11 deletions

View file

@ -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