Commit 1fefd7cbd3ef65d34c36f2b4dd8cedb29200c569
1 parent
6e5999a6
Exists in
master
and in
4 other branches
Fix db seeds for dev
Showing
2 changed files
with
21 additions
and
3 deletions
Show diff stats
db/fixtures/development/004_teams.rb
1 | UsersProject.seed(:id, [ | 1 | UsersProject.seed(:id, [ |
2 | { :id => 1, :project_id => 1, :user_id => 1, :project_access => UsersProject::MASTER }, | 2 | { :id => 1, :project_id => 1, :user_id => 1, :project_access => UsersProject::MASTER }, |
3 | - { :id => 2, :project_id => 1, :user_id => 2, :project_access => UsersProject::REPORTERW}, | ||
4 | - { :id => 3, :project_id => 1, :user_id => 3, :project_access => UsersProject::REPORTERW}, | 3 | + { :id => 2, :project_id => 1, :user_id => 2, :project_access => UsersProject::REPORTER}, |
4 | + { :id => 3, :project_id => 1, :user_id => 3, :project_access => UsersProject::REPORTER}, | ||
5 | { :id => 4, :project_id => 1, :user_id => 4, :project_access => UsersProject::REPORTER}, | 5 | { :id => 4, :project_id => 1, :user_id => 4, :project_access => UsersProject::REPORTER}, |
6 | { :id => 5, :project_id => 1, :user_id => 5, :project_access => UsersProject::REPORTER}, | 6 | { :id => 5, :project_id => 1, :user_id => 5, :project_access => UsersProject::REPORTER}, |
7 | 7 |
db/fixtures/development/005_issues.rb
@@ -15,7 +15,25 @@ Issue.seed(:id, [ | @@ -15,7 +15,25 @@ Issue.seed(:id, [ | ||
15 | { :id => 13, :project_id => 3, :author_id => 2, :assignee_id => 2, :title => Faker::Lorem.sentence(6)}, | 15 | { :id => 13, :project_id => 3, :author_id => 2, :assignee_id => 2, :title => Faker::Lorem.sentence(6)}, |
16 | { :id => 14, :project_id => 3, :author_id => 3, :assignee_id => 3, :title => Faker::Lorem.sentence(6)}, | 16 | { :id => 14, :project_id => 3, :author_id => 3, :assignee_id => 3, :title => Faker::Lorem.sentence(6)}, |
17 | { :id => 15, :project_id => 3, :author_id => 4, :assignee_id => 4, :title => Faker::Lorem.sentence(6)}, | 17 | { :id => 15, :project_id => 3, :author_id => 4, :assignee_id => 4, :title => Faker::Lorem.sentence(6)}, |
18 | - { :id => 16, :project_id => 3, :author_id => 5, :assignee_id => 5, :title => Faker::Lorem.sentence(6)} | 18 | + { :id => 16, :project_id => 3, :author_id => 5, :assignee_id => 5, :title => Faker::Lorem.sentence(6)}, |
19 | + | ||
20 | + { :id => 21, :project_id => 1, :author_id => 1, :assignee_id => 1, :title => Faker::Lorem.sentence(6) }, | ||
21 | + { :id => 22, :project_id => 1, :author_id => 2, :assignee_id => 2, :title => Faker::Lorem.sentence(6) }, | ||
22 | + { :id => 23, :project_id => 1, :author_id => 3, :assignee_id => 3, :title => Faker::Lorem.sentence(6) }, | ||
23 | + { :id => 24, :project_id => 1, :author_id => 4, :assignee_id => 4, :title => Faker::Lorem.sentence(6) }, | ||
24 | + { :id => 25, :project_id => 1, :author_id => 5, :assignee_id => 5, :title => Faker::Lorem.sentence(6) }, | ||
25 | + | ||
26 | + { :id => 26, :project_id => 2, :author_id => 1, :assignee_id => 1, :title => Faker::Lorem.sentence(6) }, | ||
27 | + { :id => 27, :project_id => 2, :author_id => 2, :assignee_id => 2, :title => Faker::Lorem.sentence(6) }, | ||
28 | + { :id => 28, :project_id => 2, :author_id => 3, :assignee_id => 3, :title => Faker::Lorem.sentence(6) }, | ||
29 | + { :id => 29, :project_id => 2, :author_id => 4, :assignee_id => 4, :title => Faker::Lorem.sentence(6) }, | ||
30 | + { :id => 30, :project_id => 2, :author_id => 5, :assignee_id => 5, :title => Faker::Lorem.sentence(6) }, | ||
31 | + | ||
32 | + { :id => 32, :project_id => 3, :author_id => 1, :assignee_id => 1, :title => Faker::Lorem.sentence(6)}, | ||
33 | + { :id => 33, :project_id => 3, :author_id => 2, :assignee_id => 2, :title => Faker::Lorem.sentence(6)}, | ||
34 | + { :id => 34, :project_id => 3, :author_id => 3, :assignee_id => 3, :title => Faker::Lorem.sentence(6)}, | ||
35 | + { :id => 35, :project_id => 3, :author_id => 4, :assignee_id => 4, :title => Faker::Lorem.sentence(6)}, | ||
36 | + { :id => 36, :project_id => 3, :author_id => 5, :assignee_id => 5, :title => Faker::Lorem.sentence(6)} | ||
19 | ]) | 37 | ]) |
20 | 38 | ||
21 | 39 |