Kept doing this...
This commit is contained in:
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
|
Reference in New Issue
Block a user