Skip to content
railsengines.com

Actual DB Schema

Keep DB schema in sync across branches effortlessly. Install and use rails db:migrate as normal. The gem handles the rest automatically

No ratings yet
Gem
actual_db_schema
Repository
widefix/actual_db_schema
License
MIT
Stars
394
Added
August 21, 2026

About

Keep DB schema in sync across branches effortlessly. Install and use rails db:migrate as normal. The gem handles the rest automatically.

Keep your database schema perfectly synchronized across Git branches, eliminate broken tests and schema conflicts, and save wasted hours on phantom migrations.

What you get

  • Zero Manual Work: Switch branches freely - phantom migrations roll back automatically
  • No More Schema Conflicts: Clean schema.rb/structure.sql diffs every time, no irrelevant changes
  • Error Prevention: Eliminates ActiveRecord::NotNullViolation and similar errors when switching branches
  • Time Savings: Stop hunting down which branch has the problematic migration
  • Team Productivity: Everyone stays focused on coding, not database maintenance
  • Staging/Sandbox Sync: Keep staging and sandbox databases aligned with your current branch code
  • Visual Management: Web UI to view and manage migrations across all databases

Installing it

ruby
# Gemfile
gem "actual_db_schema"

Details

394 stars on GitHub · MIT licensed · maintained by widefix. Source: https://github.com/widefix/actual_db_schema

Discussion (0)

Sign in to join the discussion.

No comments yet.