Sha256: 97ee5b2a49499c95f92450fc82406872dd27ea07c8088017637ab64befa57ce3

Contents?: true

Size: 726 Bytes

Versions: 5

Compression:

Stored size: 726 Bytes

Contents

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

class AddAdvancedEditCards < Cardio::Migration::Core
  def up
    ensure_card "*activity toolbar button", codename: "activity_toolbar_button"
    ensure_card "*rules toolbar button", codename: "rules_toolbar_button"
    ensure_card "Anyone With Role",
                codename: "anyone_with_role",
                type_id: Card::RoleID

    Card::Cache.reset_all
    ensure_card [:roles, :right, :options],
                type_id: Card::SearchTypeID,
                content: %({"type":"role", "not":{"codename":["in","anyone","anyone_signed_in, anyone_with_role"]}})

    ensure_card "*csv structure",
                type_id: Card::SettingID,
                codename: "csv_structure"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb
card-1.101.3 db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb
card-1.101.2 db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb
card-1.101.1 db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb
card-1.101.0 db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb