RepoPilot

ankane/strong_migrations

Catch unsafe migrations in development

Mixed

Single-maintainer risk — review before adopting

MixedDependency

top contributor handles 98% of recent commits; dependency CVE scan unavailable

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

dependency CVE scan unavailable

  • Small team — 3 contributors active in recent commits
  • Single-maintainer risk — top contributor 98% of recent commits
  • Last commit 2w ago
  • 3 active contributors
  • MIT licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: ankane/strong_migrations

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T20:55:59.711Z · commit 2e8bc96f2490

Verdict

Mixed — Single-maintainer risk — review before adopting

  • Last commit 2w ago
  • 3 active contributors
  • MIT licensed
  • CI configured
  • 1 more receipt on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

What it is

Strong Migrations is a Rails gem that catches unsafe database migration operations during development before they run in production. It analyzes migrations for operations that could block reads/writes or cause runtime errors (like removing columns, changing column types, adding foreign keys without CONCURRENTLY on Postgres), blocks them by default, and provides clear instructions for safer alternatives. It supports PostgreSQL, MySQL, and MariaDB. Monolithic gem structure: lib/strong_migrations/ contains the core checker engine (checker.rb, checks.rb), database adapters for each platform (adapters/), and a Rails integration layer (railtie.rb, migration.rb). The lib/generators/

Start here

Open these first:

  • lib/strong_migrations.rb — Main entry point that initializes the gem and integrates with Rails
  • lib/strong_migrations/checker.rb — Core validation engine that checks migrations for unsafe operations
  • lib/strong_migrations/checks.rb — Defines all safety checks for dangerous migration patterns (removing columns, adding constraints, etc.)
  • lib/strong_migrations/migration.rb — Patches ActiveRecord::Migration to intercept and validate migration operations
  • lib/strong_migrations/adapters/abstract_adapter.rb — Base adapter class that defines the interface for database-specific safety checks

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/ankane/strong_migrations.git
cd strong_migrations
bundle install
bundle exec rake test

Daily commands:

bundle exec rake test                    # Run full test suite
bundle exec rake test:sqlite            # Or specific DB tests
bundle exec rails generate strong_migrations:install  # Install in a Rails app

Key cautions & unknowns

  • Small team — 3 contributors active in recent commits
  • Single-maintainer risk — top contributor 98% of recent commits
    1. The gem hooks into ActiveRecord's migration system via monkey-patching Migration class; this requires the gem to be loaded before migrations run, which is handled by Railtie but must be kept in the Gemfile (not…
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Forkable" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Forkable
[![RepoPilot: Forkable](https://repopilot.app/api/badge/ankane/strong_migrations?axis=fork)](https://repopilot.app/r/ankane/strong_migrations)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/ankane/strong_migrations on X, Slack, or LinkedIn.

Ask AI about ankane/strong_migrations

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/ankane/strong_migrations"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>