Write dev seed data for representative local environment #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — dev database only has placeholder data. Need representative seeds for local development.
Repo
ldraney/palinksUser Story
As a developer
I want to run
rails db:seedand get a realistic local datasetSo that I can develop and test features against representative data without connecting to prod
Context
Dev database currently has three placeholder links (GitHub, Ruby Docs, Rails). As palinks evolves into a multi-user app with visibility tiers, feature flags, and click tracking, dev needs representative data across all these dimensions. Seeds are opt-in via
rails db:seed— never run automatically on container start.File Targets
db/seeds.rb— write seed dataAcceptance Criteria
db/seeds.rbusesfind_or_create_byfor idempotency (safe to run multiple times)forgejo_url, some withoutTest Expectations
rails db:seedtwice — no duplicates, no errorsdocker compose exec web bundle exec rails db:seedConstraints
find_or_create_bynotcreateChecklist
Related
ldraney/palinks #17— visibility tiers will inform seed categoriesstory:auth-rolesScope Review: READY
Review note:
review-1381-2026-06-07Ticket is well-scoped for a single agent pass. All template sections present, file target verified, no blocking dependencies.
Non-blocking observations:
project-palinkspage andarch-palinksnote do not yet exist in pal-e-docs (affects all palinks board items, not specific to this ticket)