Skip to content

Commit 5524b43

Browse files
committed
Merge pull request #5 from runephilosof/grep-migrations
ignore modified migrations.
2 parents 7a24a6d + 6069a09 commit 5524b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git_rails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ ! -z "$bundle_changed" ]; then
1919
bundle
2020
fi
2121

22-
migrations=`git diff --name-status $old_ref $new_ref -- db/migrate`
22+
migrations=`git diff --name-status $old_ref $new_ref -- db/migrate | grep '^[AD]'`
2323
if [ ! -z "$migrations" ]; then
2424
echo "Running migrations!"
2525
for migration in $migrations

0 commit comments

Comments
 (0)