richardmable / shipping

Building a web app to match the those who own the ships with those who need stuff shipped.
1 stars 1 forks source link

Add complete to WO table and current WO to Boat table #12

Closed richardmable closed 8 years ago

richardmable commented 8 years ago

Add complete :boolean to the Work Order Table and work_order_current_id :integer to the Boat table so that we know which Work order the boat is on, and which work orders have been completed. We'll use AR's .update method to update the current work order with the Boat, and some logic in the controller to handle nil cases, i.e. if nil, display boat has no current work order.