Repository navigation
Give the demo accounts an email so seeding works again - #186
Merged
Merged
Conversation
Since accounts moved to Devise (#172) every account needs an email, and the three demo users had none, so db:seed rolled back at the first one and a fresh development database had nobody to sign in as. - The demo accounts live in db/seeds/demo_users.rb, loaded by db/seeds.rb, each with an @usput.local email and confirmed up front. - The summary printed at the end names the email to sign in with. - A test loads the file on its own, signs in with a demo account through the real form, and checks a second load creates nobody new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
db/seeds.rbhad none, sodb:seedrolled back at the first one and a fresh development database had no account to sign in with.db/seeds/demo_users.rb(loaded bydb/seeds.rb), each with an@usput.localemail and confirmed up front, so nobody waits for a confirmation mail.Test plan
test/db/demo_users_seed_test.rb: one confirmed account per role, a demo account signs in through the real form, and loading twice creates no duplicates.bin/rails db:seed:replanton development: 3 users, 25 places, 10 experiences, 4 plans, 173 reviews.🤖 Generated with Claude Code
https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT