box-o-sand/rails/map-mash/script/dev-reset
2012-03-08 08:00:18 -05: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