Sha256: 529678e4cf4118b251bd0663cbc809796945ff284e747ad1e05f1e815138110f

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

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

class AddListCards < Cardio::Migration::Core
  def up
    create_card! name: "List", codename: :list,
                 type_code: :cardtype

    create_card! name: "Listed by", codename: :listed_by,
                 type_code: :cardtype

    create_or_update name: "*cached count",
                     codename: :cached_count,
                     rename_if_conflict: false,
                     subcards: {
                       "+*right+*update" => "[[Administrator]]",
                       "+*right+*create" => "[[Administrator]]",
                       "+*right+*delete" => "[[Administrator]]"
                     }

    create_or_update name: "*cached content",
                     codename: :cached_content,
                     rename_if_conflict: false,
                     subcards: {
                       "+*right+*update" => "[[Administrator]]",
                       "+*right+*create" => "[[Administrator]]",
                       "+*right+*delete" => "[[Administrator]]"
                     }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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