Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-04 21:43:49 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-04 21:43:49 +0400
commitaf5faaf0e1e001558302704a421eb01f5e7a26ea (patch)
treea53ed55cd7b35f23f74ebe33b6610c77fafec132 /lib/tasks/migrate
parent8f05fbbab5754b2a05547bae7ed3f9c409d8a640 (diff)
Move diff parsing to own class. Correctly identify note diff line
Diffstat (limited to 'lib/tasks/migrate')
-rw-r--r--lib/tasks/migrate/migrate_inline_notes.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate/migrate_inline_notes.rake b/lib/tasks/migrate/migrate_inline_notes.rake
index ec338259abc..e21fa0e8ce8 100644
--- a/lib/tasks/migrate/migrate_inline_notes.rake
+++ b/lib/tasks/migrate/migrate_inline_notes.rake
@@ -1,6 +1,6 @@
desc "GITLAB | Migrate inline notes"
task migrate_inline_notes: :environment do
- Note.where(noteable_type: 'MergeRequest').find_each(batch_size: 100) do |note|
+ Note.where('line_code IS NOT NULL').find_each(batch_size: 100) do |note|
begin
note.set_diff
if note.save