Categories: None [Edit]

schema_reaper

https://rubygems.org/gems/schema_reaper
https://github.com/aksshatt/schema_reaper
schema_reaper scans a Rails + PostgreSQL app for schema debt that's easy to accumulate and hard to find by hand. It checks your live database against your codebase and flags three kinds of problems: things nothing references anymore (dead columns and dead tables), index trouble (indexes nobody queries, indexes made redundant by a wider index that already covers them, and foreign-key columns with no index at all), and degenerate data (columns that are always NULL, or hold the exact same value in every row). Every finding comes with a confidence score, an estimate of the disk space removing it would reclaim, and a concrete fix. For a column, that's a two-step migration: stop reading it first, then drop it once you've confirmed nothing broke. An optional runtime tracker can sample real production traffic to raise confidence further, for cases a static code scan alone can't settle. Reports come as a colored terminal summary, JSON, Markdown for a PR comment, or SARIF for GitHub code scanning -- plus a CI baseline gate and a trend log to track progress release over release. PostgreSQL only for now. Requires Ruby 2.7 or later. Full usage is in the README.

Total

Ranking: 105,098 of 196,799
Downloads: 8,003

Daily

Ranking: 10,691 of 196,768
Downloads: 153

Depended by

RankDownloadsName

Depends on

RankDownloadsName
251,154,994,952thor
37841,140,943activerecord
47790,483,907railties
50776,529,839actionmailer
62708,686,737activejob
99502,898,627simplecov
110472,913,104pg
276201,548,309prism

Owners

#GravatarHandle
1iconakkshatt
2iconmitkush