Sha256: 6b33966841083b6850d0a70978d3d6b553afe7589a414a65253c75724279dc53
Contents?: true
Size: 785 Bytes
Versions: 4
Compression:
Stored size: 785 Bytes
Contents
# -*- encoding : utf-8 -*- class AccountEvents < ActiveRecord::Migration include Wagn::MigrationHelper def up contentedly do 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 end
Version data entries
4 entries across 4 versions & 1 rubygems