Sha256: e1af8790279936c8e5e70843dd7871a0f96f6567b5ec46aaaba95e633c34cdfd

Contents?: true

Size: 845 Bytes

Versions: 7

Compression:

Stored size: 845 Bytes

Contents

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

class AccountEvents < ActiveRecord::Migration
  include Wagn::MigrationHelper
  def up
    contentedly do
      aa = Card.fetch "#{ Card[ :account_request ].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

  def down
    contentedly do
      
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.12 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.11 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.10 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.9 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.8 db/migrate_cards/20130927191728_account_events.rb
wagn-1.12.7 db/migrate_cards/20130927191728_account_events.rb