Does rails have a built in function that wipes (erases everything) in
the database? Something like rake db:purge?
rake db:reset
Just wondering though, is there also a way to drop all the tables in
the database?
That did the trick, thanks!
On Aug 11, 8:46 am, Mike C [email protected] wrote:
Just wondering though, is there also a way to drop all the tables in
the database?
If you’re using migrations, you could use
rake db:migrate VERSION=0
though I believe that still leaves the schema_info (or
schema_migrations) table there.
Jeff
Come to REST with Rails, Oct 4, 2008 in Austin, TX
http://www.purpleworkshops.com/workshops/rest-and-web-services
softiesonrails.com - blog
purpleworkshops.com - training
pragprog.com/titles/cerailn - Upcoming book, Rails for .NET Developers
Thanks. For anyone else wondering about how to do this, I found that
rake db:drop also works.