Commit 0da5a4fa authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

separate rake task for migration and persistent one

parent 10902c84
No related merge requests found
# This taks will reload commits/diff for all merge requests
desc "GITLAB | Migrate Merge Requests"
task migrate_merge_requests: :environment do
MergeRequest.find_each(batch_size: 20) do |mr|
mr.st_commits = []
mr.save
mr.reload_code
print '.'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment