{ id: 9, project_id: 3, title: 'v' + Faker::Address.zip_code },
{ id: 11, project_id: 3, title: 'v' + Faker::Address.zip_code },
])
+
+Milestone.all.map do |ml|
+ ml.set_iid
+ ml.save
+end
}])
print('.')
end
+
+ Issue.all.map do |issue|
+ issue.set_iid
+ issue.save
+ end
end
end
end
+MergeRequest.all.map do |mr|
+ mr.set_iid
+ mr.save
+end
+
puts 'Load diffs for Merge Requests (it will take some time)...'
MergeRequest.all.each do |mr|
mr.reload_code
--- /dev/null
+namespace :dev do
+ desc "GITLAB | Setup developer environment (db, fixtures)"
+ task :setup => :environment do
+ ENV['force'] = 'yes'
+ Rake::Task["db:setup"].invoke
+ Rake::Task["db:seed_fu"].invoke
+ Rake::Task["gitlab:shell:setup"].invoke
+ end
+end
+