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.
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.