fix method for previous data corruption
This commit is contained in:
parent
1036d11e98
commit
05ee69ce24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user