Open SJBroida opened 2 years ago
/dashboard
page will
data-reservation-id-status={reservation.reservation_id}
attribute, so it can be found by the tests./reservations/:reservation_id/status
with a body of {data: { status: "<new-status>" } }
where <new-status>
is one of booked, seated, or finishedHint You can add a field to a table in a migration
up
method by defining a new column. E.g.table.string("last_name", null).notNullable();
will create a new last_name column. Be sure to remove the column in thedown
function usingdropColumn()
. E.g.table.dropColumn("last_name");
Hint Use
Knex.transaction()
to make sure thetables
andreservations
records are always in sync with each other.
User Story 6:
As a restaurant manager I want a reservation to have a status of either booked, seated, or finished so that I can see which reservation parties are seated, and finished reservations are hidden from the dashboard.