summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-03-09 22:41:22 +0000
committerRobert Speicher <robert@gitlab.com>2017-03-09 22:41:22 +0000
commit47cef41e27f27bc67f7dfa9a27bc0ce14931428b (patch)
tree5853a2309215cbfde50f7a75fd28df10b6567190
parent7867b9929ce8e03eda6da4c87e24e59210b1ee81 (diff)
parente4551749c09883ff5a9cd793a77fb3bbfa08f409 (diff)
downloadgitlab-ce-47cef41e27f27bc67f7dfa9a27bc0ce14931428b.tar.gz
Merge branch 'dm-downtime-check-only-added-files' into 'master'
Only check new migrations in 'rake downtime_check' See merge request !9785
-rw-r--r--lib/tasks/gitlab/db.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake
index ecf6b6e068b..5476438b8fa 100644
--- a/lib/tasks/gitlab/db.rake
+++ b/lib/tasks/gitlab/db.rake
@@ -62,7 +62,7 @@ namespace :gitlab do
ref = Shellwords.escape(args[:ref])
- migrations = `git diff #{ref}.. --name-only -- db/migrate`.lines
+ migrations = `git diff #{ref}.. --diff-filter=A --name-only -- db/migrate`.lines
.map { |file| Rails.root.join(file.strip).to_s }
.select { |file| File.file?(file) }