The Schema Drift Detector is a specialized tool for Ruby on Rails and ActiveRecord developers that solves the common problem of 'schema pollution' in Pull Requests. By cross-referencing changes in schema.rb against the specific migrations included in a PR, it automatically detects stray columns, indexes, or version increments that originated from other branches or local database updates. This ensures that database schema files remain strictly synchronized with relevant migrations, preventing merge conflicts and keeping the project's data modeling history accurate and professional.
主な機能
01Detection of unrelated table, column, and index additions
0235 GitHub stars
03Automated migration-to-schema cross-referencing
04Validation of schema version numbers against migration timestamps
05Seamless integration into the standard PR review workflow
06Clear reporting of drift indicators with actionable fix instructions
ユースケース
01Debugging unexpected schema conflicts after merging from a main branch
02Reviewing Pull Requests containing database migrations to ensure schema integrity
03Cleaning up schema.rb files polluted by local development database state