BigW Consortium Gitlab

Commit cc4b638c by Dmitriy Zaporozhets

Set iid in fixtures. Add rake dev:setup for development

parent b5593683
......@@ -11,3 +11,8 @@ Milestone.seed(:id, [
{ 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
......@@ -24,4 +24,9 @@ Gitlab::Seeder.quiet do
}])
print('.')
end
Issue.all.map do |issue|
issue.set_iid
issue.save
end
end
......@@ -34,6 +34,11 @@ Gitlab::Seeder.quiet do
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
......
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
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