Only check new migrations in 'rake down_timecheck'

This commit is contained in:
Douwe Maan 2017-03-07 15:45:03 -06:00
parent d34300e310
commit e4551749c0
1 changed files with 1 additions and 1 deletions

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