Database changes are checked so they don't break the site mid-update
Reliability
Why it matters: An update that changes how data is stored won't take the site down while it rolls out, or after it's undone.
While an update rolls out, the old and new versions of the site run side by side, and a failed update puts the old version back. Every change to the database now has to keep working with the previous version too.
Automated checks stop the common kinds of change that don’t, before they can be deployed. Every database change is also replayed from scratch on every code change to confirm the result is exactly what’s expected.
Commits (3)
-
eab792fThe migration rule: strong_migrations, two custom checks, migrations run in CI -
152b795Codex diff audit 1: default: nil is no default; duplicate branches -
a4e17b1Claude diff review: add_timestamps is a required column too; subscribe button name
Files Changed (11)
.github/workflows/ci.yml | 10 ++++ CLAUDE.md | 2 + Gemfile | 3 ++ Gemfile.lock | 3 ++ app/views/groups/_teams.html.erb | 12 +---- app/views/shared/_sort_indicator.html.erb | 13 ++---- app/views/subscriptions/new.html.erb | 2 +- config/initializers/strong_migrations.rb | 53 ++++++++++++++++++- docs/migrations.md | 88 ++++++++++++++++++++++++++++++ docs/rolling-deploy.md | 5 ++- test/lib/strong_migrations_test.rb | 82 ++++++++++++++++++++++++++++ 11 files changed, 249 insertions(+), 24 deletions(-)