-
adds column
type
to thebookings
table. (STI); -
Add news columns for PersonalBooking in
bookings
table:-
Description:text
-
Linen:string (enum in rails side)
-
services:array
Example:
[checkin, cleaning]
to support the selected task_types forPersonalBooking
. ForGuestBooking
this will be set to[:cleaning, :checkin, :checkout]
automatically. Based on the column the tasks will be created for Personal and Guest bookings.[Édipo] - So here in the view side, for
PersonalBooking
, will exists three checkboxes: 'checking, checking and cleaning' ?
-
-
create two models (subclasses) and intheriting from
Booking
:- PersonalBooking
- GuestBooking
-
move logic specific logic from booking to
GuestBooking
and keep shared logic at theBooking
.- Validations
- Callbacks
- Scopes
- Methods
-
make specs green again!
- Create a new controller called PersonalBookingsController
- Will need a view to create a PersonalBooking. Because already we dont have way to create a booking 'manually'. We Need to discuss it. How the UI will look like and the flow.
- A little wireframe can help here
- Ignore PersonalBooking from Reports.