box-o-sand/rails/map-mash/script/dev-reset

10 lines
181 B
Plaintext
Raw Normal View History

2012-03-08 13:00:18 +00:00
#!/bin/bash
set -e
export RAILS_ENV=development
rm -v db/development.sqlite3
bundle exec rake db:create
if [[ -f db/development.sqlite3 ]]; then
bundle exec rake db:migrate
fi