5
11
Fork
You've already forked tomato
1

Better sample data #6

Merged
edwardloveall merged 1 commit from el-better-seeds into main 2025年08月05日 22:36:50 +02:00

The sample data didn't even allow you to log in because there was no
organization. Now there's an org and site along with users in the
Denver time zone.

The sample data didn't even allow you to log in because there was no organization. Now there's an org and site along with users in the Denver time zone.
@ -11,3 +1,1 @@
# That belongs in seeds.rb instead.
User.create(email: "ops@foodrescuealliance.org", full_name: "Operations", password: "password", roles: 1)
User.create(email: "volunteer@foodrescuealliance.org", full_name: "Volunteer", password: "password", roles: 0)
org = Organization.create(
First-time contributor
Copy link

I like using create! instead of create for sample data scripts. If it doesn't succeed for some reason, it can be helpful to raise an error so that you are aware something fundamental changed and the seeds need updated.

I like using `create!` instead of `create` for sample data scripts. If it doesn't succeed for some reason, it can be helpful to raise an error so that you are aware something fundamental changed and the seeds need updated.
edwardloveall force-pushed el-better-seeds from 0470ffdf7f
All checks were successful
Setup Successful
Jest Successful
RSpec Successful
Static Analysis Successful
to 598fb2ca89
All checks were successful
Setup Successful
Jest Successful
Static Analysis Successful
RSpec Successful
2025年08月05日 22:28:15 +02:00
Compare
edwardloveall deleted branch el-better-seeds 2025年08月05日 22:36:52 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!6
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-better-seeds"

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?