Sha256: 480d73161826bb0f382cd48ee6e998390e6331e441676995e0fee8e4f9853b04

Contents?: true

Size: 677 Bytes

Versions: 27

Compression:

Stored size: 677 Bytes

Contents

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

class AddModStylesCard < Card::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

27 entries across 27 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.6 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.5 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.4 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.3 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.2 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.99.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.98.3 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.98.2 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.98.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.98.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.97.0.1 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.97.0 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.8 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.7 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.6 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.5 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.4 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb
card-1.96.3 db/migrate_core_cards/20180423120222_add_mod_styles_card.rb