Sha256: 98f42509b09be4c11a2183064c01633f6a4c89c0fc96ac9a151497c80c967c2d

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 Bytes

Contents

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

class AccountEvents < Card::CoreMigration
  def up
    aa = Card.fetch "#{Card[:signup].name}+#{Card[:type].name}+#{Card[:accountable].name}", new: {}
    aa.content = '1'
    aa.save!

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

    r_options = Card.fetch "#{role_right}+#{Card[:options].name}", 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}+#{Card[:input].name}", new: {}
    r_input.content = '[[checkbox]]'
    r_input.save!
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.18.6 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.5 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.4 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.3 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.2 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.1 db/migrate_core_cards/20130927191728_account_events.rb
card-1.18.0 db/migrate_core_cards/20130927191728_account_events.rb