Ship a Feature Behind a Flag with a Data Migration
Medium · AI-Assisted Coding · about 60 minutes
Asked at Meta, Shopify, LinkedIn.
In an existing web service, add support for multiple shipping addresses per user. The current schema stores a single address on the user record. Using an AI assistant, add the new model and a migration, keep the old API working, and put the new behavior behind a feature flag so it can be turned on gradually.