Sha256: 73dbf17be100117ac9b381b22b754c534caf5338a014e56490f3412ea86fd35e
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
# -*- encoding : utf-8 -*- class RemoveAddHelp < Cardio::Migration::Transform def up Card.search(right: { codename: "add_help" }, left: { type_id: Card::SetID }).each do |card| next if Card.exist? [card.left, :help] Card.ensure name: [card.left, :help], content: card.content end delete_code_card :add_help Card::Cache.reset_all end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.108.1 | mod/core/data/transform/20190829205148_remove_add_help.rb |
card-1.108.0 | mod/core/data/transform/20190829205148_remove_add_help.rb |