diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-26 13:20:45 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-26 13:20:45 +0300 |
commit | cc4b638c343d49c205fa510380b65043229e5a9e (patch) | |
tree | 25400252795991938b27de3ac952ec47ac79f36d /db/fixtures | |
parent | b5593683af9c8d182c954e04fbde9934404c5058 (diff) | |
download | gitlab-ce-cc4b638c343d49c205fa510380b65043229e5a9e.tar.gz |
Set iid in fixtures. Add rake dev:setup for development
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/07_milestones.rb | 5 | ||||
-rw-r--r-- | db/fixtures/development/09_issues.rb | 5 | ||||
-rw-r--r-- | db/fixtures/development/10_merge_requests.rb | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/db/fixtures/development/07_milestones.rb b/db/fixtures/development/07_milestones.rb index 3135bf3a4f4..6fe7e246770 100644 --- a/db/fixtures/development/07_milestones.rb +++ b/db/fixtures/development/07_milestones.rb @@ -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 diff --git a/db/fixtures/development/09_issues.rb b/db/fixtures/development/09_issues.rb index 627579721d0..31ba77254a3 100644 --- a/db/fixtures/development/09_issues.rb +++ b/db/fixtures/development/09_issues.rb @@ -24,4 +24,9 @@ Gitlab::Seeder.quiet do }]) print('.') end + + Issue.all.map do |issue| + issue.set_iid + issue.save + end end diff --git a/db/fixtures/development/10_merge_requests.rb b/db/fixtures/development/10_merge_requests.rb index bf247adb416..1e61ea28636 100644 --- a/db/fixtures/development/10_merge_requests.rb +++ b/db/fixtures/development/10_merge_requests.rb @@ -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 |