Sha256: ef6e4cf6962e8d54b6b5c8c021fc5b8e36b1d0c9b7cef141419553f92486ea42

Contents?: true

Size: 679 Bytes

Versions: 17

Compression:

Stored size: 679 Bytes

Contents

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

class AddModStylesCard < Cardio::Migration::Core
  def up
    ensure_card "style: mods", codename: "style_mods",
                               type_id: Card::PointerID
    ensure_card "style: libraries", codename: "style_libraries",
                                    type_id: Card::PointerID
    ensure_card "script: libraries",
                codename: "script_libraries",
                type_id: Card::PointerID
    if (card = Card.fetch(:all, :script))
      card.insert_item 4, "script: libraries"
      card.drop_item "script: select2"
      card.drop_item "script: load select2"
      card.save!
    end
    Card::Cache.reset_all
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
card-1.104.2 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.104.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.104.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.103.4 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.103.3 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.103.2 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.103.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.103.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.7 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.102.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.6 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.5 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.4 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.3 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.2 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.101.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb