Building PlanetScale with PlanetScale
Aug 18, 2021Iheanyi Ekechukwu

Summary
This post details how PlanetScale engineers use the platform's branching and deploy request features for their own internal database schema changes. It explains the workflow from creating a migration file to using the `pscale branch switch` command to create and connect to a database branch. It also covers how to configure Rails to connect to the branch using an environment variable and how to apply migrations to the branch. The post highlights the creation of deploy requests, the review process via GitHub pull requests and Slack, and the deployment of schema changes to the production branch, emphasizing the zero-downtime and non-blocking nature of these operations.