Sha256: 5ff108b289a79b03a8928d32f48360eecb8791aea0f1f466ac88f851c77aa3fd

Contents?: true

Size: 795 Bytes

Versions: 5

Compression:

Stored size: 795 Bytes

Contents

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

class PointerOverhaul < Cardio::Migration::Core
  def up
    update "List", name: "Mirrored List", codename: "mirrored_list" unless Card::Codename[:mirrored_list]
    update "Listed by", name: "Mirror List", codename: "mirror_list" unless Card::Codename[:mirror_list]
    update "Pointer", name: "List", codename: "list" unless Card::Codename[:list]
    ensure_code_card "Pointer", type_id: Card::CardtypeID
    ensure_code_card "Link list", type_id: Card::CardtypeID
    Card::Cache.reset_all
    ensure_list_card "list+*input+*type plus right+*options",
                     content: ["List", "Multiselect", "Checkbox", "Filtered list"]

    ensure_list_card "pointer+*input+*type plus right+*options",
                     content: ["Select", "Radio"]


  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20190625153616_pointer_overhaul.rb
card-1.101.3 db/migrate_core_cards/20190625153616_pointer_overhaul.rb
card-1.101.2 db/migrate_core_cards/20190625153616_pointer_overhaul.rb
card-1.101.1 db/migrate_core_cards/20190625153616_pointer_overhaul.rb
card-1.101.0 db/migrate_core_cards/20190625153616_pointer_overhaul.rb