fix method for previous data corruption

This commit is contained in:
Torsten 2023-01-20 20:24:10 +02:00
parent 1036d11e98
commit 05ee69ce24

View File

@ -92,5 +92,14 @@ module Merged
s
end
def self.fix_cards
Section.all.each do |section|
next if section.template_style.has_cards?
puts "#{section.id}: #{section.card_template}"
section.card_template = nil if section.card_template
end
Section.save_all
nil
end
end
end