diff --git a/app/models/merged/section.rb b/app/models/merged/section.rb index f7d8080..d0dec77 100644 --- a/app/models/merged/section.rb +++ b/app/models/merged/section.rb @@ -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