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

Fix migrate_iids for issues

parent 1f7d485d
......@@ -4,7 +4,7 @@ task migrate_iids: :environment do
Issue.where(iid: nil).find_each(batch_size: 100) do |issue|
begin
issue.set_iid
if issue.update_attribute(:iid, mr.iid)
if issue.update_attribute(:iid, issue.iid)
print '.'
else
print 'F'
......
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