Skip to content

Commit 0ce2008

Browse files
committed
TEMP: Benchmark migration
1 parent ffaa087 commit 0ce2008

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

script/install/migrate.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ lastupdate=`cat script/update.time` # get time of last update
55
lastmodified=`find db/migrate/ -printf '%T+\n' | sort -r | head -n1`
66
if [[ "$lastupdate" < "$lastmodified" ]] ; then
77
echo '$ rake db:migrate'
8-
bundle exec rake db:migrate || exit 1
8+
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
914
fi
1015

1116
lastmodified=`find db/seeds.rb -printf '%T+\n' | sort -r | head -n1`

0 commit comments

Comments
 (0)