Will new and pre-migration accounts follow the same intended rule?
The original implementation failed the “Legacy row” check. Expected true and observed false. The corrected implementation met both expectations on the same inputs.
What the control case missed
A newly created row with an explicit false value still behaves as expected. An older row with an absent field should retain the previous default of true, which a Boolean coercion silently reverses.
| Check | Expected | Original | Corrected |
|---|---|---|---|
| Explicit opt-out | false | false | false |
| Legacy row | true | false | true |
What to check before merging
Seed the migration suite with legacy records, then check explicit false and missing values separately. A new-user test alone cannot detect this regression in the existing customer population.
Reproduce the recorded result
Download the Node.js fixture and run node run.mjs schema-default-migration with Node.js 24. Compare the printed JSON with the recorded results. This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.