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

10 lines
181 B
Plaintext
Raw Normal View History

2012-04-04 03:02:32 +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