Sha256: c2f5dfcf46d4f7306775cd252e350c167a2f083337c8afc65ec2dc4f36b7b9c4
Contents?: true
Size: 612 Bytes
Versions: 12
Compression:
Stored size: 612 Bytes
Contents
# This migration comes from erp_orders (originally 20110605231556) class CreateOrderPartyRoles def self.up order_roles = BizTxnPartyRoleType.create( :description => 'Order Roles', :internal_identifier => 'order_roles' ) buyor_role = BizTxnPartyRoleType.create( :description => 'Payor', :internal_identifier => 'payor' ) buyor_role.move_to_child_of(order_roles) buyor_role.save end def self.down BizTxnPartyRoleType.find_by_internal_identifier('payor').destroy BizTxnPartyRoleType.find_by_internal_identifier('order_roles').destroy end end
Version data entries
12 entries across 12 versions & 7 rubygems