Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idempotent database seeds inspired by Bullet Train #372

Merged
merged 1 commit into from Apr 11, 2022

Conversation

joemasilotti
Copy link
Owner

This PR makes it possible to run rake db:seed multiple times without creating duplicate data. It is inspired by Bullet Train's take on seeds.

https://bullettrain.co/docs/seeds

Pull request checklist

  • Your code contains tests relevant for code you modified
  • You have linted and tested the project with bin/check
  • You have added significant changes and product updates to the changelog

@joemasilotti joemasilotti merged commit 1e94150 into main Apr 11, 2022
5 checks passed
@joemasilotti joemasilotti deleted the idempotent-seeds branch April 11, 2022 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant