Fix typo in setting key

This commit is contained in:
Alex Sherman 2020-09-11 15:53:46 +05:00
parent 3a0112beca
commit 2ef430a877
5 changed files with 26 additions and 15 deletions

View file

@ -0,0 +1,11 @@
class FixTypoInSettingName < ActiveRecord::Migration[6.0]
def up
setting = Setting.find_by(code: 'request_confrimation_on_registrant_change_enabled')
setting.update(code: 'request_confirmation_on_registrant_change_enabled')
end
def down
setting = Setting.find_by(code: 'request_confirmation_on_registrant_change_enabled')
setting.update(code: 'request_confrimation_on_registrant_change_enabled')
end
end

View file

@ -26,7 +26,7 @@ ActiveRecord::Base.transaction do
SettingEntry.create(code: 'client_side_status_editing_enabled', value: 'false', format: 'boolean', group: 'other')
SettingEntry.create(code: 'api_ip_whitelist_enabled', value: 'false', format: 'boolean', group: 'other')
SettingEntry.create(code: 'registrar_ip_whitelist_enabled', value: 'false', format: 'boolean', group: 'other')
SettingEntry.create(code: 'request_confrimation_on_registrant_change_enabled', value: 'true', format: 'boolean', group: 'other')
SettingEntry.create(code: 'request_confirmation_on_registrant_change_enabled', value: 'true', format: 'boolean', group: 'other')
SettingEntry.create(code: 'request_confirmation_on_domain_deletion_enabled', value: 'true', format: 'boolean', group: 'other')
SettingEntry.create(code: 'default_language', value: 'en', format: 'string', group: 'other')
SettingEntry.create(code: 'invoice_number_min', value: '131050', format: 'integer', group: 'billing')