# go-gormigrate/gormigrate

Minimalistic database migration helper for Gorm ORM

Repository: https://github.com/go-gormigrate/gormigrate
Canonical: https://ross.abutalabs.com/products/gormigrate
Homepage: https://pkg.go.dev/github.com/go-gormigrate/gormigrate/v2
Language: Go
License: MIT
License Family: permissive
Topics: go, gorm, schema, migrations, schema-migrations, database, db
Last push: 2026-05-26T18:54:48+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 54, longevity 100
- inputs: {"age_days": 3654, "days_push": 99, "days_rel": 99, "gap_med": 186, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1172, forks 100 (observed 2026-08-28T04:03:51.762919+00:00)

## What it is
Gormigrate is a minimalistic database schema migration helper library for the Gorm ORM in Go. It adds schema versioning and migration rollback support on top of Gorm's built-in migration functions.

## Use cases
- run database schema migrations in a Go app using Gorm
- add versioned migrations with rollback support to Gorm projects
- migrate MySQL, PostgreSQL, SQLite, or SQL Server schemas from Go code
- track which schema migrations have been applied to a database
- roll back a bad schema change in a Gorm application

## When to choose
- you already use Gorm and need proper schema versioning and rollbacks
- you want a lightweight, code-first migration tool without external CLI dependencies
- your app needs to run migrations programmatically at startup

## When to avoid
- you don't use Gorm as your ORM
- you need standalone SQL-file-based migrations managed outside Go code
- you need advanced features like down-migrations across many versions or migration generation tooling

## Facets
- artifact type: library
- maturity: stable
- function: database, orm, developer-tools
- domain: databases, developer-tools, backend
- platform: go, windows, cross-platform
- tags: schema-migrations, gorm, rollback, sql, migration-helper, linux, macos

## Member repositories
- go-gormigrate/gormigrate (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.762919+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:26.943127+00:00, confidence not recorded.
  - readme: https://github.com/go-gormigrate/gormigrate (fetched 2026-08-28T04:03:51.762919+00:00, sha 194b5fec36e7)
  - homepage: https://pkg.go.dev/github.com/go-gormigrate/gormigrate/v2 (fetched 2026-08-29T12:33:47.470647+00:00, sha 9d3453ef0946)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:33:47.480193+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T12:33:47.482448+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
