We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7dd33 commit 02da705Copy full SHA for 02da705
bin/git_rails
@@ -38,7 +38,7 @@ if [ ! -z "$migrations_removed" ]; then
38
git checkout $new_ref -- db/schema.rb
39
fi
40
41
-if [ ! -z "$old_ref" ]; then
+if [ ! -z "$migrations_added" ]; then
42
echo "New migrations have been added running migrations"
43
bundle exec rake db:migrate db:test:prepare
44
hooks/post-checkout
@@ -4,6 +4,5 @@ old_ref=$1
4
new_ref=$2
5
6
if [ $checking_out_branch -eq 1 ] && b=$(git symbolic-ref --short -q HEAD); then
7
- pwd
8
- git_rails.sh $old_ref $new_ref
+ git_rails $old_ref $new_ref
9
0 commit comments