box-o-sand/map-mash/script/dev-reset
2012-04-03 23:02:32 -04:00

10 lines
181 B
Bash
Executable File

#!/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