# rroblak/seed_dump

Rails task to dump your data to db/seeds.rb

Repository: https://github.com/rroblak/seed_dump
Canonical: https://ross.abutalabs.com/products/seed_dump
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-05-13T21:28:43+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 71, longevity 100
- inputs: {"age_days": 5881, "days_push": 112, "days_rel": 112, "gap_med": 80.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1414, forks 222 (observed 2026-08-28T04:04:39.660125+00:00)

## What it is
Seed Dump is a Rails plugin that adds a rake task (db:seed:dump) and console API to export existing database records into db/seeds.rb seed files. It supports filtering models, limiting records, excluding attributes, appending, and custom output files.

## Use cases
- dump existing database rows into db/seeds.rb
- generate Rails seed data from a live database
- export only certain models or a limited number of records to seeds
- exclude sensitive or irrelevant attributes from seed dumps
- create seed files from the Rails console for an ActiveRecord relation

## When to choose
- you maintain a Rails app and need reproducible seed data from real database content
- you want a quick rake task or console one-liner to generate seeds.rb
- you need fine-grained control over which models, records, and attributes are dumped

## When to avoid
- you are not using Rails or ActiveRecord
- you need to dump data to formats other than Ruby seed files (e.g., SQL, JSON, YAML)
- you need database-agnostic seeding outside the Rails ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: database, developer-tools, cli
- domain: developer-tools, web-development, databases
- platform: ruby, cli
- tags: rails, seed-data, rake-task, activerecord, database-dump

## Member repositories
- rroblak/seed_dump (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.660125+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-30T04:38:14.074665+00:00, confidence not recorded.
  - readme: https://github.com/rroblak/seed_dump (fetched 2026-08-28T04:04:39.660125+00:00, sha f6388df62ec4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
