mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 05:36:07 +10:00
17 lines
307 B
Ruby
17 lines
307 B
Ruby
desc "GITLAB | Migrate inline notes"
|
|
task migrate_inline_notes: :environment do
|
|
Note.where('line_code IS NOT NULL').find_each(batch_size: 100) do |note|
|
|
begin
|
|
note.set_diff
|
|
if note.save
|
|
print '.'
|
|
else
|
|
print 'F'
|
|
end
|
|
rescue
|
|
print 'F'
|
|
end
|
|
end
|
|
end
|
|
|