Posts

Showing posts with the label Ruby on Rails.

Delete and reset database in rails 3

Suppose I have a Ruby on Rails database . I want to delete everything and rebuild the database. Please follow the following steps: rake db:drop rake db:create rake db:migrate  To reset and reload your current schema with all. Just follow rake db:reset rake db:migrate