Merge branch 'dm-downtime-check-only-added-files' into 'master'

Only check new migrations in 'rake downtime_check'

See merge request !9785
This commit is contained in:
Robert Speicher 2017-03-09 22:41:22 +00:00
commit 47cef41e27

View file

@ -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) }