We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffaa087 commit 0ce2008Copy full SHA for 0ce2008
script/install/migrate.bash
@@ -5,7 +5,12 @@ lastupdate=`cat script/update.time` # get time of last update
5
lastmodified=`find db/migrate/ -printf '%T+\n' | sort -r | head -n1`
6
if [[ "$lastupdate" < "$lastmodified" ]] ; then
7
echo '$ rake db:migrate'
8
- bundle exec rake db:migrate || exit 1
+ for i in {1..3}; do
9
+ echo "XXX benchmark migrate: $i"
10
+ time bundle exec rake db:migrate || exit 1
11
+ bundle exec rake db:drop db:create
12
+ done
13
+ exit 1
14
fi
15
16
lastmodified=`find db/seeds.rb -printf '%T+\n' | sort -r | head -n1`
0 commit comments