Settings

Theme

PlanetScale-style database branching for Rails and SQLite with 2-lines of code

fractaledmind.github.io

4 points by fractaledmind 2 years ago · 1 comment

Reader

fractaledmindOP 2 years ago

The first time I read about PlanetScale's "database branching" feature, I felt the way one does when they realize something, but it feels like they always should have known it. Dealing with a single database schema for local development is a pain, especially with a team. Our schemas *need* to be branched. However, I don't use MySQL or PlanetScale, plus I wanted to consolidate my branching around the Git branch I already have and use. After a few days of exploring and experimenting, I found that I can achieve the developer experience I want with Rails and SQLite in literally 2-lines of code. It feels magical and I love it.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection