Skip to content

Instantly share code, notes, and snippets.

@kgoettsc
kgoettsc / fix_changed_move_in_21BR03.rb
Created March 22, 2016 21:06
A member wants to move their move in to 4/1 rather than mid March
#Spaceman
pr = PrimaryReservation.find(469191)
ReservationService.new.archive!(pr,nil,true)
#Spacemoney
opr = OpportunityRecord.find_by(encoded_id: "MDA2RjAwMDAwMGdiZUhuSUFJ")
mc = MembershipChange.find_by(hashed_key: "72dc884d0c5196074f76ea1921ea8376093d8382")
mc.send(:create_reservations!, opr.opportunity)
TenantService.switch_to_rest_of_world_tenant
reservation = PrimaryReservation.find_by(uuid: "74f7a747-95d5-4c08-9809-dfb8d7e07818")
reservation.update_attributes(price: 16800)