Sha256: 8d5de2e77fb33709f4222d22dbea1786601c34a50ff6477a5767a35233c8ddd9
Contents?: true
Size: 545 Bytes
Versions: 11
Compression:
Stored size: 545 Bytes
Contents
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
11 entries across 11 versions & 1 rubygems