diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 09:56:39 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 09:56:39 +0200 |
commit | 34f994b7c50fa45c4257cbe5f0fef61f58abb549 (patch) | |
tree | 0aa89fd111015483d39ced5496587104b913ced1 /db/fixtures | |
parent | 1e64333c5fe81a36373f0d437e425e8cab107a91 (diff) | |
download | gitlab-ce-34f994b7c50fa45c4257cbe5f0fef61f58abb549.tar.gz |
Improve dev fixtures
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/05_users.rb | 2 | ||||
-rw-r--r-- | db/fixtures/development/09_issues.rb | 2 | ||||
-rw-r--r-- | db/fixtures/development/10_merge_requests.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/db/fixtures/development/05_users.rb b/db/fixtures/development/05_users.rb index cbb3e636acc..3440a645408 100644 --- a/db/fixtures/development/05_users.rb +++ b/db/fixtures/development/05_users.rb @@ -1,5 +1,5 @@ Gitlab::Seeder.quiet do - (2..50).each do |i| + (2..10).each do |i| begin User.seed(:id, [{ id: i, diff --git a/db/fixtures/development/09_issues.rb b/db/fixtures/development/09_issues.rb index 85e309b6335..2b81d7a2597 100644 --- a/db/fixtures/development/09_issues.rb +++ b/db/fixtures/development/09_issues.rb @@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do project = Project.all.sample # Random user - user = project.users.sample + user = project.team.users.sample next unless user diff --git a/db/fixtures/development/10_merge_requests.rb b/db/fixtures/development/10_merge_requests.rb index 75f6e56985d..2b1f4160211 100644 --- a/db/fixtures/development/10_merge_requests.rb +++ b/db/fixtures/development/10_merge_requests.rb @@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do project = Project.all.sample # Random user - user = project.users.sample + user = project.team.users.sample next unless user |