Sha256: 3e6b3aeb96607306c2154fe137aaf1a4d3fe7725d15684316a296a3e1dd54061

Contents?: true

Size: 575 Bytes

Versions: 17

Compression:

Stored size: 575 Bytes

Contents

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

class AccountEvents < Cardio::Migration::Core
  def up
    aa = Card.fetch :signup, :type, :accountable, new: {}
    aa.content = "1"
    aa.save!

    role_right = "#{Card[:roles].name}+#{Card[:right].name}"

    r_options = Card.fetch role_right, :options, new: {}
    r_options.type_id = Card::SearchTypeID
    r_options.content = %({"type":"role", "not":{"codename":["in","anyone","anyone_signed_in"]}})
    r_options.save!

    r_input = Card.fetch role_right, :input, new: {}
    r_input.content = "[[checkbox]]"
    r_input.save!
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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