Reset your development and test environment with one simple rake task.
Installation
Add this line to your application's Gemfile:
gem 'rails_reset', :group => [:development, :test]
And then execute:
$ bundle
Usage
Instead of doing:
$ rake db:migrate:reset db:seed db:test:prepare sunspot:reindex
You can do:
$ rake rails:reset
Note: It will only reindex solr if you use sunspot
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request