Only check new migrations in 'rake down_timecheck'
This commit is contained in:
parent
d34300e310
commit
e4551749c0
|
@ -62,7 +62,7 @@ namespace :gitlab do
|
||||||
|
|
||||||
ref = Shellwords.escape(args[:ref])
|
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 }
|
.map { |file| Rails.root.join(file.strip).to_s }
|
||||||
.select { |file| File.file?(file) }
|
.select { |file| File.file?(file) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue