Sha256: 1e16bda59f2c04d8847bc705f4ab354899195d3ff6b11e66589fc1d0f667bbd4

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

# -*- encoding : utf-8 -*-

class ReorganizeScripts2 < Card::Migration::Core
  def up
    delete_code_card :script_card_menu
    if Card::Codename[:script_slot]
      update_card! :script_slot, name: "script: decko",
                                 codename: "script_decko",
                                 update_referers: true
    end
    if (card = Card[:all, :script])
      card.drop_item "script: card menu"
      card.drop_item "script: select2"
      card.drop_item "script: load select2"
      card.save!
    end
    Card.reset_all_machines
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.6 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.5 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.4 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.3 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.2 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.1 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb
card-1.99.0 db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb