summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-07 15:45:03 -0600
committerDouwe Maan <douwe@selenight.nl>2017-03-08 17:33:53 -0600
commite4551749c09883ff5a9cd793a77fb3bbfa08f409 (patch)
tree715f47c0577cc2eb86277a9da3bf30de58e4cf93
parentd34300e310eca8b02c2b3956cd7c321edb3a5d0d (diff)
downloadgitlab-ce-e4551749c09883ff5a9cd793a77fb3bbfa08f409.tar.gz
Only check new migrations in 'rake down_timecheck'dm-downtime-check-only-added-files
-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) }