Build and Test a Paid Waitlist on a Branch Before It Goes Live

Build a paid waitlist for a live booking app on an Isolated branch, stress-test it on a Scratch branch, and rehearse the database migration before anything reaches main.

Build and Test a Paid Waitlist on a Branch Before It Goes Live

Sunclub Yoga is a fictional yoga studio with a fully functioning booking application hosted on Floot. Customers can browse classes, reserve a place and receive a confirmation email. On the admin side, the studio can manage classes and see who has booked.

But as the classes become more popular, a new challenge emerges: how can the studio introduce a paid waitlist without disrupting the customers who are already using the app?

This is where Floot Branches come in.

In this walkthrough, we'll build a paid waitlist on an Isolated branch and test payments, refunds and email notifications without involving existing customers.

We'll then explore two powerful uses of Scratch branches: putting our application under pressure, and rehearsing the upgrade itself before it touches the live database.

By the end, the feature is tested, the database migration has been rehearsed against a copy of the live app, and the branch is ready to merge into main.

You'll learn how to:

  • Create an Isolated branch with its own empty database, test payments and caught emails.
  • Verify a feature in the branch's own database, payments and email logs.
  • Use a Scratch branch for an experiment that can never be merged by accident.
  • Read a merge review and fix a migration before it reaches main.
  • Rehearse a merge on a Scratch branch to check the live app keeps working after the database changes.

Before you begin

This walkthrough requires a Floot Pro or Power plan, because we'll keep several branches open during development, testing and merge rehearsal.

All customer accounts, booking records and transactions shown throughout this walkthrough are demonstration data. On an Isolated branch, Floot Payments runs in test mode and emails are caught rather than sent, so every payment and email below is a test.

Round one: Start with a working live app

1. Sunclub Yoga: storefront, admin dashboard and database

The storefront lets customers browse classes and book a session.

Figure 1 The Sunclub Yoga storefront homepage.
Figure 1 The Sunclub Yoga storefront homepage.

The admin dashboard shows registered members, scheduled classes, active bookings and available spaces. This original version is live on main.

Figure 2 The admin dashboard on main, showing classes, booking counts and availability.
Figure 2 The admin dashboard on main, showing classes, booking counts and availability.

The app has its own database. Open Services → Data to see the tables and records that support registration, sign-in, the class schedule and bookings.

Figure 3 The users table on main contains the existing member records.
Figure 3 The users table on main contains the existing member records.

The important relationship is between users, yoga_classes and yoga_bookings. A booking links a customer to a class and records its status. The other tables support authentication and sessions.

Figure 4 The original seven-table database structure, before the waitlist.
Figure 4 The original seven-table database structure, before the waitlist.

Round two: Build the waitlist in isolation

Sunclub's classes are becoming more popular. What happens when a class is full, but another customer still wants to attend? Rather than asking customers to keep checking for available spaces, we can introduce a waitlist.

The rules are deliberately simple. Customers pay a refundable $5 deposit to join the queue. If a place becomes available, the next customer receives an email and pays the balance to confirm. For a $15 class, that is another $10. If the customer has not secured a place when the class starts, the $5 deposit is refunded and a refund email is generated.

3. Floot's branch types

Floot offers two branch types, Standard and Isolated, along with a separate Scratch branch option.

Standard: A development branch with your choice of database contents and service keys. It suits general development, feature enhancements and bug fixes.

Isolated: A development branch that keeps the existing database schema but starts without copied records by default. It uses the saved test value for each service key, or no value if one has not been configured. Payments run in test mode, and emails generated through Floot's built-in email service are caught rather than sent.

Scratch: A separate option that can be switched on for either Standard or Isolated branches, creating a temporary space for experiments, advanced testing and release rehearsals.

Changes can be merged into a Scratch branch, but cannot be merged out while it remains Scratch. This gives us the freedom to experiment without accidentally introducing experimental changes into our application. We can discard the branch when the experiment is complete, keep it for further investigation, or make it ordinary if we deliberately decide to integrate the work. Scratch branches are deleted after seven days of inactivity unless kept or made ordinary.

For Sunclub Yoga, we'll create an Isolated branch called waitlist, with Scratch switched off. We'll use its Preview to develop and test the paid waitlist without involving existing customers or their booking records. Keeping Scratch off means we can merge the feature once it has been tested and reviewed.

Branches used in this walkthrough

BranchTypePurpose
mainLiveThe original application
waitlistIsolatedBuilding the feature: Stripe test payments, refunds and caught emails
100 User-Stress TestIsolated, ScratchA 100-attempt booking-handler test
merge-rehearsal-v2Isolated, ScratchRehearsing the merge: the published V1 app against the upgraded database

4. Create an Isolated branch in the editor

First, open the branch selector at the top of the Floot editor and choose Branch Reviews. This is where you create new branches and review changes before merging them.

Figure 5 The branch selector gives access to Branch Reviews and the Protect main switch.
Figure 5 The branch selector gives access to Branch Reviews and the Protect main switch.

Click New branch, name it waitlist, start from main and choose Isolated. Leave Scratch branch switched off, because we want to merge this feature when it is ready. Then click Create branch.

Figure 6 Creating the Isolated waitlist branch from main, with Scratch switched off.
Figure 6 Creating the Isolated waitlist branch from main, with Scratch switched off.

You can also create a branch through your connected assistant by simply asking:

Create an Isolated branch called waitlist from main.

5. Check that the new environment is isolated

The new branch now appears in the branch selector. I also switch on Protect main, so changes must go through a branch rather than being made directly on main.

Figure 7 The waitlist branch is selected and Protect main is on.
Figure 7 The waitlist branch is selected and Protect main is on.

Switch to waitlist and open Services → Data. The users table still has the same columns as the original table, but it has no records.

Figure 8 The isolated database keeps the users table's columns, with zero rows.
Figure 8 The isolated database keeps the users table's columns, with zero rows.

We still have the same application and the same database structure, but none of the existing customer records. We have a fully separate environment to work in, without rebuilding the application or setting up another database by hand.

6. Ask the assistant to build the feature on waitlist

Ask your assistant:

Build the V2 waitlist and $5 deposit feature for my Sunclub Yoga booking app. Work only on the Isolated waitlist branch. Version 1 is already live on main; do not modify or publish main.

When a class is full, show Join waitlist instead of Book a spot. Customers must sign in. Collect a refundable $5 deposit using Floot Payments in test mode. Keep the queue first-come, first-served. When a place becomes available through a booking cancellation or an increase in class capacity, offer the available place to the next eligible customer on the waitlist and generate an email notification. Apply the deposit to the class price and collect the remaining balance online when the customer confirms.

If no place is confirmed by the time the class starts, refund the $5 and generate a refund confirmation email. Prevent duplicate refunds. Show the waitlist status in My bookings and the admin dashboard.

Make a few $15 classes full for testing. Use a $5 refundable deposit and a $10 remaining balance. Use only dummy data, test payments and caught emails. Preserve the existing V1 booking flow. Prepare the database migration for main, but do not merge or publish anything. Test joining, payment, promotion and refunds. Show the actual test records and captured emails.

The assistant builds the waitlist and a few full test classes. Because the isolated database starts empty, we register a new test customer before trying the workflow.

Figure 9 Registering Emily as a test customer on the waitlist branch.
Figure 9 Registering Emily as a test customer on the waitlist branch.

7. Join a full class and pay the $5 test deposit

The test class is already full, so instead of a normal booking button, I see Join the waitlist. The interface explains that the $5 deposit is refundable and does not guarantee a confirmed booking.

Figure 10 Restore and reset is full, and customers can join the waitlist with a refundable $5 deposit.
Figure 10 Restore and reset is full, and customers can join the waitlist with a refundable $5 deposit.

Click Join waitlist and complete checkout in the Stripe sandbox. The app uses Floot Payments, Floot's built-in payment service powered by Stripe. On an Isolated branch it runs in test mode, so we can go through checkout without charging a real customer.

Figure 11 Stripe sandbox checkout for the $5 refundable waitlist deposit.
Figure 11 Stripe sandbox checkout for the $5 refundable waitlist deposit.

8. Check what actually happened in the database

The interface says Emily has joined the waitlist, but how do we know the application is behaving correctly? Because the branch has its own database, we can look directly at the records. Open Services → Data and inspect three tables.

Figure 12 The users table identifies Emily as test user ID 4.
Figure 12 The users table identifies Emily as test user ID 4.
Figure 13 The yoga_classes table identifies Restore and reset as class ID 10, with a capacity of 10 and a price of $15.
Figure 13 The yoga_classes table identifies Restore and reset as class ID 10, with a capacity of 10 and a price of $15.
Figure 14 The booking records include confirmed fixture bookings created for testing. Emily does not have a confirmed booking.
Figure 14 The booking records include confirmed fixture bookings created for testing. Emily does not have a confirmed booking.
Figure 15 Ten confirmed fixture bookings fill every place in class ID 10.
Figure 15 Ten confirmed fixture bookings fill every place in class ID 10.
Figure 16 Waitlist record ID 5 links Emily to class ID 10 with status waitlisted.
Figure 16 Waitlist record ID 5 links Emily to class ID 10 with status waitlisted.

Emily has joined the queue without taking a confirmed booking space. The test deposit also appears under Services → Payments.

Figure 17 Floot Payments shows the successful $5 test deposit.
Figure 17 Floot Payments shows the successful $5 test deposit.

9. Check the deposit email without sending a real email

Next, open Services → Email → Email logs on the waitlist branch. Send email is off on an Isolated branch: instead of sending messages to the addresses customers entered, Floot keeps them in the logs.

Figure 18 Emily's $5 deposit confirmation for Restore and reset is marked Caught · not sent.
Figure 18 Emily's $5 deposit confirmation for Restore and reset is marked Caught · not sent.

We have a complete confirmation email, with the customer's details, the deposit amount and the booking information, and it has never been sent. We can check exactly what a customer would receive without involving them in development.

Isolation covers Floot's own services, not every service your app connects to. If your application uses a third-party SMS provider, an external email API or another service outside Floot, make sure the branch uses test credentials or that service's sandbox. An external API connected with live credentials could still perform real actions.

10. Test A: Refund a deposit when no place becomes available

First, the scenario where Emily stays on the waitlist without securing a place.

On the waitlist branch, I open the admin dashboard, change the start time of Restore and reset to a time in the past and save.

When I click Save, the backend sees that the class has started and queues a background task called refundClass. It calls refundEntry() to refund the $5 through Stripe, updates the waitlist status and generates a refund confirmation email, which the branch catches.

Figure 19 The class start time is moved to 24 November 2026 at 6:30 pm to simulate a class that has already started.
Figure 19 The class start time is moved to 24 November 2026 at 6:30 pm to simulate a class that has already started.

11. Verify the refund in the database, payments and email logs

Figure 20 The waitlist entry changes from waitlisted to refunded.
Figure 20 The waitlist entry changes from waitlisted to refunded.

Under Services → Payments → Test payments, the $5 transaction is marked Refunded. The matching refund message is in Email logs.

Figure 21 The matching $5 test payment is marked Refunded in Floot Payments.
Figure 21 The matching $5 test payment is marked Refunded in Floot Payments.
Figure 22 The refund confirmation email includes the class name, the $5 refund amount and a refund reference.
Figure 22 The refund confirmation email includes the class name, the $5 refund amount and a refund reference.

We now have three pieces of evidence for the refund: the database status, the test payment refund and the caught email. No real customer was charged or contacted, so we can test sensitive payment and notification workflows long before they reach the live application.

The implementation also guards against duplicate refunds with database status checks and a Stripe idempotency key. We saw one successful refund; we did not rerun the refund task to test that guard.

12. Test B: Confirm a booking when a place becomes available

Now the opposite scenario: a place becomes available, and the customer pays the remaining balance to confirm. I stay on the waitlist branch and use the same test customer, Emily.

A. Join another full class

This time I choose Hatha foundations, a $15 class with all 12 places booked, join the waitlist and pay the refundable $5 deposit in the Stripe sandbox.

Figure 23 Hatha foundations is full. Only the $5 refundable deposit is due now; the full class price is $15.
Figure 23 Hatha foundations is full. Only the $5 refundable deposit is due now; the full class price is $15.

B. Verify the deposit before releasing a place

In Services → Data, I open yoga_waitlist. Record ID 6 links Emily (user ID 4) to Hatha foundations (class ID 5), with the status waitlisted.

Figure 24 The waitlist record is created with status waitlisted and a recorded deposit payment.
Figure 24 The waitlist record is created with status waitlisted and a recorded deposit payment.

Services → Payments and Services → Email show the transaction and the confirmation email.

Figure 25 Floot Payments records a successful $5 test deposit.
Figure 25 Floot Payments records a successful $5 test deposit.
Figure 26 The deposit confirmation email is Caught · not sent. It explains that the deposit does not yet confirm a place.
Figure 26 The deposit confirmation email is Caught · not sent. It explains that the deposit does not yet confirm a place.

C. Make a place available by increasing capacity

To release a place, I open Admin → Class schedule → Edit for Hatha foundations, raise the capacity from 12 to 13 and save. A newly available place should be offered to the next customer on the waitlist.

Figure 27 The admin raises the capacity of Hatha foundations from 12 to 13.
Figure 27 The admin raises the capacity of Hatha foundations from 12 to 13.

D. Check the offer and pay the remaining balance

Back in Services → Data, Emily's waitlist record has changed from waitlisted to offered: the place is held for her, but not yet booked.

Figure 28 Waitlist record ID 6 now has the status offered.
Figure 28 Waitlist record ID 6 now has the status offered.

In Services → Email → Email logs, the app has generated a spot-available notification for Emily, marked Caught · not sent.

Figure 29 The caught spot-available email tells Emily that a place has become available for Hatha foundations.
Figure 29 The caught spot-available email tells Emily that a place has become available for Hatha foundations.

In My bookings, Hatha foundations now shows a button to pay the remaining $10. The $5 deposit is credited towards the class price.

Figure 30 My bookings shows "Pay remaining $10.00 to confirm" for Hatha foundations.
Figure 30 My bookings shows "Pay remaining $10.00 to confirm" for Hatha foundations.

I click the button and pay $10 in the Stripe sandbox. The app collects the balance rather than charging the full $15 again.

Figure 31 Stripe sandbox checkout shows the remaining class balance of $10.
Figure 31 Stripe sandbox checkout shows the remaining class balance of $10.

13. Check the final confirmation

Figure 32 The payment-complete email confirms the $5 deposit, the $10 balance and $15 paid in total.
Figure 32 The payment-complete email confirms the $5 deposit, the $10 balance and $15 paid in total.
Figure 33 The remaining $10 balance is paid in Stripe test mode.
Figure 33 The remaining $10 balance is paid in Stripe test mode.
Figure 34 The $10 payment is recorded in the database.
Figure 34 The $10 payment is recorded in the database.
Figure 35 After the balance payment, yoga_bookings has a new booking with status confirmed: Emily's place is secured.
Figure 35 After the balance payment, yoga_bookings has a new booking with status confirmed: Emily's place is secured.

14. Test C: Check the queue order after a cancellation

Still on the waitlist branch, I create a fully booked $15 class called Waitlist Queue Test. I join its waitlist as Emily first, then as Sophie, paying the $5 test deposit for each.

In Services → Data → yoga_waitlist, both customers are waitlisted. Emily (user ID 4) joined and paid before Sophie (user ID 35).

Figure 36 Both customers are waitlisted for Waitlist Queue Test, with Emily joining and paying before Sophie.
Figure 36 Both customers are waitlisted for Waitlist Queue Test, with Emily joining and paying before Sophie.

Next, I sign in as Alex, a test customer with a confirmed booking for the same class, and cancel his booking in My bookings, releasing one place.

Figure 37 Alex cancels his confirmed booking for Waitlist Queue Test.
Figure 37 Alex cancels his confirmed booking for Waitlist Queue Test.

Back in the database, Emily's status has changed to offered, while Sophie's is still waitlisted.

Figure 38 Emily receives the offer first, while Sophie stays on the waitlist.
Figure 38 Emily receives the offer first, while Sophie stays on the waitlist.

In Services → Email → Email logs, Alex's cancellation confirmation and Emily's spot-available notification are both caught.

Figure 39 The caught emails: Alex's cancellation and Emily's spot-available notification. Recipient addresses have been replaced with test customer names.
Figure 39 The caught emails: Alex's cancellation and Emily's spot-available notification. Recipient addresses have been replaced with test customer names.

The place went to the customer who joined and paid first. (Emily was first by both timestamps, so this test doesn't tell us which one the queue orders by.)

On the Isolated waitlist branch, we've now verified deposits, refunds when a class starts, offers after a capacity increase, balance payments, booking confirmations and queue order after a cancellation, all without a real payment or a real email.

These tests cover the scenarios shown, not every possible waitlist behaviour. In this version, an offered place stays reserved until the customer confirms or the class starts; offer expiry and passing the place to the next customer are out of scope for this walkthrough.

Before merging into main, there's another question worth exploring: how does the booking handler behave when 100 people try to book at once? This is where Scratch branches come in.

Round three: Experiment with a Scratch branch

15. Create a Scratch branch from waitlist

Functional testing tells us whether the application behaves as expected in individual scenarios. But what happens when we push it beyond normal day-to-day use?

We can create a Scratch branch directly from waitlist. This time we're not building another feature. We're exploring how the application behaves under pressure, without any risk of the experiment ending up in the app.

In Branch Reviews, click New branch. Name it 100 User-Stress Test, start from waitlist and switch on Scratch branch. Because waitlist is isolated, its branches are isolated too.

Figure 40 Creating the Scratch branch 100 User-Stress Test from waitlist. It starts as a copy of waitlist's tables and rows.
Figure 40 Creating the Scratch branch 100 User-Stress Test from waitlist. It starts as a copy of waitlist's tables and rows.

The Scratch branch is a separate environment for this experiment, and the waitlist branch is unaffected. Before running the test, check that the branch holds only test data, uses test credentials and catches emails rather than delivering them.

16. Build a temporary testing dashboard

For this experiment, I ask the assistant to build a temporary stress-testing dashboard for the Sunclub Yoga app. It's a testing tool made for this project, not a built-in Floot load-testing feature.

Ask your assistant:

On my 100 User-Stress Test Isolated scratch branch, build a temporary stress-testing dashboard. Create a dedicated test class with 12 available spaces and 100 unique dummy customers. Use the existing booking handler to simulate 100 concurrent booking attempts. Do not insert booking results directly into the database. Include a Run 100 Concurrent Bookings button, progress indicator, total responses, successful and unsuccessful bookings, remaining spaces, overbooking count, duplicate booking count, response times and a PASS or FAIL result. Use test payments and caught emails only. Keep existing test records separate from this experiment. Do not modify waitlist or main, and do not fix bugs automatically. Let me run the test by clicking the button.

The dashboard sends 100 calls at once to the existing server-side booking handler, using Promise.all(). The test class is free, to separate booking behaviour from payments. It does not simulate browser sessions, separate HTTP requests or waitlist payments.

Open /stress-test in Preview and sign in as the studio admin. The dashboard starts at 0/100 attempts.

Figure 41 The temporary stress-testing dashboard before the run.
Figure 41 The temporary stress-testing dashboard before the run.

17. Run the 100-attempt test

Click Run 100 Concurrent Bookings. With 12 places and 100 attempts, we expect 12 successful bookings, 88 full-class rejections and no overbooking or duplicate bookings.

Figure 42 The completed 100-attempt test shows PASS and the booking results.
Figure 42 The completed 100-attempt test shows PASS and the booking results.

The dashboard reports PASS: 100 responses, 12 successful bookings, 88 full-class rejections, no overbooking and no duplicates.

Figure 43 Response times, matching booking IDs and examples of successful and rejected attempts.
Figure 43 Response times, matching booking IDs and examples of successful and rejected attempts.

18. Check the evidence behind the result

The dashboard says the successful booking IDs match the database. To check for yourself, open Services → Data → yoga_bookings and confirm there are exactly 12 confirmed rows with 12 distinct user IDs.

Figure 44 Twelve confirmed bookings for the stress-test class, from 12 distinct test customers.
Figure 44 Twelve confirmed bookings for the stress-test class, from 12 distinct test customers.

Then open Services → Email → Email logs: 12 booking confirmations, all caught, none delivered.

Figure 45 Twelve booking confirmation emails caught during the run, none delivered.
Figure 45 Twelve booking confirmation emails caught during the run, none delivered.

With one prompt and one click, we've tested 100 booking attempts against a class with 12 places: 12 bookings, 88 rejections, no overbooking and no duplicates. That verifies the booking handler in this test, not the performance of the whole application under load.

Throughout the experiment, the live website ran as usual, customer data was untouched and the waitlist branch was unaffected.

We've simulated 100 bookings, created temporary test records and built a whole testing dashboard, and none of it needs to become part of the app. Because the branch is Scratch, none of it can be merged back into waitlist or main by accident. We can delete the branch and return to waitlist, keeping what we've learned without keeping what we've built.

But Scratch can do more than experiments. It can also rehearse the change we're about to make to the live application.

Round four: Review and rehearse the merge

19. Review the merge into main

Back on the waitlist branch, I open a merge review into main. The review lists the changed files and the database changes the merge would make, and runs Floot's pre-merge checks before anything is merged.

The first review stopped at the check Database matches the merged code: after the migration script runs, main's database would still be missing database changes made on waitlist. Merging waits until that check passes.

Figure 46 The merge review into main stops at the Database matches the merged code check, with Fix with AI next to the error.
Figure 46 The merge review into main stops at the Database matches the merged code check, with Fix with AI next to the error.

20. Fix the migration on waitlist

Click Fix with AI and give the generated prompt to your assistant. I ask it to repair the migration on the waitlist branch only, and leave the merge decision to me.

The corrected migration orders the waitlist by paid_at rather than created_at, with the lower record ID first when timestamps are identical, and keeps the non-negative balance constraint. The temporary admin_setup table and the Preview-only testing endpoints are taken out of the changes.

Open the Database tab to review it. The paid waitlist needs two new tables: yoga_waitlist for waitlist entries and yoga_payment_events for payment events.

Figure 47 The corrected migration script: two waitlist tables, the payment-time queue index and the non-negative balance constraint. Long lines are wrapped for readability.
Figure 47 The corrected migration script: two waitlist tables, the payment-time queue index and the non-negative balance constraint. Long lines are wrapped for readability.

The corrected migration only adds: it creates the two tables and the queue index, without deleting any table or record, and it copies no test data.

Reviewing the migration is only part of the job, though. Will the original application still work once the database has been upgraded?

21. Rehearse the merge without touching main

In Floot, merging and publishing are two separate actions. Merging applies the database changes to main's live database straight away, while publishing releases the new version of the application. So between the merge and the publish, customers are using the old app against the new database.

Restoring an earlier checkpoint can bring back the application code, but it does not undo database changes.

So how can we check that the original application keeps working after the database is upgraded? By combining Scratch branches, branch publishing and branch-to-branch merging, we can recreate that exact moment of the release in a separate environment.

We've already tested the new feature. Now let's test the upgrade itself.

A. Create a rehearsal branch

Create a fresh Isolated Scratch branch from main called merge-rehearsal-v2. It needs to look like the live app: V1's code and its seven tables. For this walkthrough, I ask the assistant to fill it with synthetic customer, class and booking records.

Open Services → Data: the rehearsal branch has V1's seven tables and its demonstration bookings.

Figure 48 The fresh merge-rehearsal-v2 database holds the original seven V1 tables before the migration.
Figure 48 The fresh merge-rehearsal-v2 database holds the original seven V1 tables before the migration.
Figure 49 Ten demonstration bookings before the migration: eight confirmed and two cancelled.
Figure 49 Ten demonstration bookings before the migration: eight confirmed and two cancelled.

B. Publish V1 from the rehearsal branch

Floot lets you publish a branch to its own address, separately from main.

On merge-rehearsal-v2, open the Scratch dropdown and choose Publish this branch. Choose Internal publish, so only invited people can open it, and use a separate test address. Before publishing, check that emails are caught and external services use test credentials. In this rehearsal, the published V1 app is used for booking and cancelling only, with no payments.

Figure 50 V1 is published internally from the merge-rehearsal-v2 branch, with private access.
Figure 50 V1 is published internally from the merge-rehearsal-v2 branch, with private access.

We now have our own copy of the live V1 application, running against its own database, and we can recreate what live customers would go through without involving any of them.

C. Merge waitlist into the rehearsal branch

Switch to waitlist and choose Merge → Merge into another branch. Select waitlist as the source and merge-rehearsal-v2 as the target, then review the changes. For a merge between branches, the migration script is kept on the target branch, so the corrected script goes on merge-rehearsal-v2 here; for the merge into main it stays on waitlist. I checked that the two copies are identical.

Figure 51 The merge review into merge-rehearsal-v2: 53 changed files, no conflicts and two new database tables.
Figure 51 The merge review into merge-rehearsal-v2: 53 changed files, no conflicts and two new database tables.

Click Merge into merge-rehearsal-v2. Floot confirms the merge.

Figure 52 Floot confirms that waitlist has been merged into the merge-rehearsal-v2 Scratch branch.
Figure 52 Floot confirms that waitlist has been merged into the merge-rehearsal-v2 Scratch branch.

The upgrade has been applied to the rehearsal database, not to main's. Switch to merge-rehearsal-v2 and open Services → Data.

Figure 53 After the merge, the rehearsal database has nine tables: the seven V1 tables and the two new waitlist tables.
Figure 53 After the merge, the rehearsal database has nine tables: the seven V1 tables and the two new waitlist tables.
Figure 54 All ten original bookings are still there after the migration: eight confirmed and two cancelled.
Figure 54 All ten original bookings are still there after the migration: eight confirmed and two cancelled.

The database now has nine tables instead of seven, and all ten original bookings remain. But we have not published V2 on this branch: the published website is still running V1.

This is exactly the moment we want to rehearse: does the original application still work with the upgraded database?

D. Test the published V1 app

Open the published rehearsal website, not the editor's Preview. I register a test customer, Sophie, and book Demo Gentle Stretch. V1 confirms the booking, and the upgraded database records booking ID 11 for user ID 11.

Figure 55 The published V1 app confirms a booking for Demo Gentle Stretch after the database migration.
Figure 55 The published V1 app confirms a booking for Demo Gentle Stretch after the database migration.
Figure 56 Booking ID 11 is recorded in the upgraded database with status confirmed.
Figure 56 Booking ID 11 is recorded in the upgraded database with status confirmed.

Then I open My bookings on the same website and cancel. V1 confirms the cancellation, and the same record changes to cancelled.

Figure 57 The published V1 app lets Sophie cancel her booking after the database migration.
Figure 57 The published V1 app lets Sophie cancel her booking after the database migration.
Figure 58 Booking ID 11 now has status cancelled, with a cancellation time, in the upgraded database.
Figure 58 Booking ID 11 now has status cancelled, with a cancellation time, in the upgraded database.

E. Check the new feature in Preview

Back in the editor on merge-rehearsal-v2, open Preview and select Demo Morning Flow, a fully booked $15 demonstration class. The new Join the waitlist button shows the refundable $5 deposit. (The payments themselves were tested on waitlist, so this time I only check the interface.)

Figure 59 Preview on the rehearsal branch shows the new waitlist and the $5 deposit after the corrected migration.
Figure 59 Preview on the rehearsal branch shows the new waitlist and the $5 deposit after the corrected migration.

Rehearsal complete

  • The corrected migration upgraded the rehearsal database from seven to nine tables and kept all ten original bookings.
  • The published V1 app created and cancelled a booking against the upgraded database.
  • V2 in Preview showed the new paid waitlist.

Two versions of the application. One upgraded database. A complete rehearsal of the release, without changing main. Once you've captured what you need, delete the Scratch branch.

Next step: merge into main and publish

The waitlist branch is now ready to merge. In Branch Reviews, run the merge review into main again: once every check passes, Merge into main applies the same migration we just rehearsed to the live database, and the live V1 app keeps working, as the rehearsal showed. Publishing then releases the waitlist to customers.

Before publishing, set up live Stripe payments and a verified email sending domain, so the waitlist can take real deposits and send real emails.

Building your app is only the beginning

Building an application is one thing. Evolving it safely once customers, payments and valuable business data are involved is another.

With Floot Branches, we built a new feature in isolation, tested payments, refunds and emails without touching a real customer, experimented freely on a Scratch branch, and rehearsed the database migration before it reached the live app.

Build freely. Test safely. Experiment boldly. Rehearse before you release.

Xian Li

Written by

Xian Li

Xian Li is a first-time founder building in public and the writer of In Silico, In Soul, a newsletter about the mistakes, lessons and breakthroughs that come with creating a product from scratch.