circumvent formatting issue

pull/10574/head
Markus Kahl 3 years ago
parent 9018079fab
commit 309e25981e
  1. 6
      db/migrate/20220428071221_restore_defaults_on_empty_settings.rb

@ -1,8 +1,8 @@
class RestoreDefaultsOnEmptySettings < ActiveRecord::Migration[6.1]
def up
Setting
.where(value: '')
.find_each do |setting|
settings = Setting.where(value: '')
settings.find_each do |setting|
definition = Settings::Definition[setting.name]
if definition.nil?

Loading…
Cancel
Save