Skip to content

How to create seeds (not using fixtures)? #269

Answered by pboling
pboling asked this question in Q&A
Discussion options

You must be logged in to vote

Found this discussion: #88

And inspired by that I switched back to the Rails model approach. For me, since I have multiple customizations to the account, it looks like:

attributes = {id: 1, email: "[email protected]", user_id: 1, organization_id: 1, password: "WILD-stallions-098"}
Account.create!(status: "verified", **attributes)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@janko
Comment options

Answer selected by pboling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants