# palkan/logidze

Database changes log for Rails

Repository: https://github.com/palkan/logidze
Canonical: https://ross.abutalabs.com/products/logidze
Language: Ruby
License: MIT
License Family: permissive
Topics: activerecord, rails, versioning, postgresql, hacktoberfest
Last push: 2026-07-25T04:58:55+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 3794, "days_push": 39, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1685, forks 84 (observed 2026-08-28T04:05:22.040261+00:00)

## What it is
Logidze is a Ruby gem for Rails that logs database record changes at the PostgreSQL level using triggers, storing the version history in a JSONB column on the record itself. It provides an API to browse, diff, and revert record versions without requiring additional audit tables.

## Use cases
- track changes to ActiveRecord records over time
- implement audit trails for Rails models without extra tables
- revert a record to a previous version
- view the full change history of a database row
- version model associations in Rails
- store who made a change and why with record metadata

## When to choose
- you use Rails with PostgreSQL and want fast, DB-level change tracking
- you want version history stored with the record instead of separate audit tables
- you need undo/rollback to previous record versions
- you want an alternative to paper_trail or audited with better performance

## When to avoid
- your app does not use PostgreSQL
- you need to audit changes outside Rails/ActiveRecord
- you require cross-database compatibility or non-Ruby access to the versioning logic

## Facets
- artifact type: library
- maturity: active
- function: database, orm, logging, version-control
- domain: databases, web-development, backend, developer-tools
- platform: ruby
- tags: activerecord, rails, audit-trail, jsonb, database-triggers, time-travel, record-versioning, postgresql, web-server

## Member repositories
- palkan/logidze (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.040261+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-30T03:39:17.203791+00:00, confidence not recorded.
  - readme: https://github.com/palkan/logidze (fetched 2026-08-28T04:05:22.040261+00:00, sha 868930e574d2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
