Sha256: 331debf53469866d50625dded58052ef18cdcf0fe3b2d555586cd0f0e9039423

Contents?: true

Size: 679 Bytes

Versions: 14

Compression:

Stored size: 679 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

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 db/migrate_core_cards/20130927191728_account_events.rb
card-1.17.3 db/migrate_core_cards/20130927191728_account_events.rb
card-1.17.2 db/migrate_core_cards/20130927191728_account_events.rb
card-1.17.1 db/migrate_core_cards/20130927191728_account_events.rb
card-1.17.0 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.15 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.14 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.13 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.12 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.11 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.10 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.9 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.8 db/migrate_core_cards/20130927191728_account_events.rb
card-1.16.7 db/migrate_core_cards/20130927191728_account_events.rb