Skip to content

Comments

Add seed logging for clients and orders#183

Closed
kalashnikovisme wants to merge 1 commit intomainfrom
codex/update-seeds.rb-to-log-client-and-order-info
Closed

Add seed logging for clients and orders#183
kalashnikovisme wants to merge 1 commit intomainfrom
codex/update-seeds.rb-to-log-client-and-order-info

Conversation

@kalashnikovisme
Copy link
Member

Motivation

  • Provide simple, idempotent seed data for Client and Order and surface concise runtime feedback when running seeds so created/found records are visible.

Description

  • Create db/seeds.rb that defines clients_data and orders_data, uses find_or_create_by! to seed records idempotently, and prints puts lines for each client and order showing key attributes (id, name, email, number, client_id, total_cents, status).

Testing

  • Run ruby -c db/seeds.rb to verify syntax, which completed successfully ("Syntax OK").

Codex Task

@kalashnikovisme kalashnikovisme deleted the codex/update-seeds.rb-to-log-client-and-order-info branch February 18, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant