migrate_inline_notes.rake 313 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 desc "GITLAB | Migrate inline notes" task migrate_inline_notes: :environment do Note.where(noteable_type: 'MergeRequest').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