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

Add seed for a user and a workshop #65

merged 5 commits into from Sep 7, 2019


Copy link

commented Sep 6, 2019

These are small seeds that add a very simple workshop, and attach it to a user. I found these made developing a little easier as you don't have to create a user every time you want to log in. Outdated Show resolved Hide resolved
### Seeding the database

To add sample data to the database, run `rake db:seed`. This is slightly different to the setup step as it does not clear and recreate the tables first.
To create a fresh release of the database, run `rake db:setup`.

This comment has been minimized.

Copy link

JiggyPete Sep 7, 2019


I didn't know that's what db:setup did. 🎩

Interestingly it's always been one of the conversations about what should / should not be done in seeds (clearing them down on a proceeding run)

db/seeds.rb Outdated Show resolved Hide resolved
tbutterwith and others added 2 commits Sep 7, 2019
correct spelling of rspec
Co-Authored-By: Peter Aitken <>
Copy link

left a comment

This is great @tbutterwith 🙏

@JiggyPete JiggyPete merged commit 377edb4 into JiggyPete:master Sep 7, 2019

@tbutterwith tbutterwith deleted the tbutterwith:add-db-seeds branch Sep 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.