Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jack Carr
7,329 PointsRoR Project - Deleting users + status updates.
Hi guys, just wondering what the command is to delete all users + status updates. I remember doing it in one of the tutorials but I just can't remember wich one.
If someone could give me the command to delete all users in my database and all statuses that would be great :)
1 Answer
Zander Perry
2,227 PointsHey Jack,
It'd be something like:
$ rails console $ User.delete_all $ Status.delete_all
ps. I'm glad you liked the search add/fix!