Kept doing this...
This commit is contained in:
parent
8fca34c7ef
commit
824bbb4865
9
rails/map-mash/script/dev-reset
Executable file
9
rails/map-mash/script/dev-reset
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user