summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-07 22:55:09 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-07 22:55:09 +0200
commit2552a877df7fdb2c0a17a88479a5e49f315bcbad (patch)
tree77fe68989c2e7286c5f1d71646aa5d701c80b840 /db
parentc7afad31871960070c1db060af34ac0aa55f1683 (diff)
downloadgitlab-ce-2552a877df7fdb2c0a17a88479a5e49f315bcbad.tar.gz
updated seeds for new permissions, issue seeds added
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/004_teams.rb30
-rw-r--r--db/fixtures/development/005_issues.rb22
2 files changed, 37 insertions, 15 deletions
diff --git a/db/fixtures/development/004_teams.rb b/db/fixtures/development/004_teams.rb
index 2ba8e18fdfc..bfa6d9ae1d1 100644
--- a/db/fixtures/development/004_teams.rb
+++ b/db/fixtures/development/004_teams.rb
@@ -1,21 +1,21 @@
UsersProject.seed(:id, [
- { :id => 1, :project_id => 1, :user_id => 1, :read => true, :write => true, :admin => true },
- { :id => 2, :project_id => 1, :user_id => 2, :read => true, :write => false, :admin => false },
- { :id => 3, :project_id => 1, :user_id => 3, :read => true, :write => false, :admin => false },
- { :id => 4, :project_id => 1, :user_id => 4, :read => true, :write => false, :admin => false },
- { :id => 5, :project_id => 1, :user_id => 5, :read => true, :write => false, :admin => false },
+ { :id => 1, :project_id => 1, :user_id => 1, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
+ { :id => 2, :project_id => 1, :user_id => 2, :project_access => Project::PROJECT_RW, :repo_access => Repository::REPO_N },
+ { :id => 3, :project_id => 1, :user_id => 3, :project_access => Project::PROJECT_RW, :repo_access => Repository::REPO_N },
+ { :id => 4, :project_id => 1, :user_id => 4, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
+ { :id => 5, :project_id => 1, :user_id => 5, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
- { :id => 6, :project_id => 2, :user_id => 1, :read => true, :write => true, :admin => true },
- { :id => 7, :project_id => 2, :user_id => 2, :read => true, :write => false, :admin => false },
- { :id => 8, :project_id => 2, :user_id => 3, :read => true, :write => false, :admin => false },
- { :id => 9, :project_id => 2, :user_id => 4, :read => true, :write => false, :admin => false },
- { :id => 11, :project_id => 2, :user_id => 5, :read => true, :write => false, :admin => false },
+ { :id => 6, :project_id => 2, :user_id => 1, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
+ { :id => 7, :project_id => 2, :user_id => 2, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
+ { :id => 8, :project_id => 2, :user_id => 3, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
+ { :id => 9, :project_id => 2, :user_id => 4, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
+ { :id => 11, :project_id => 2, :user_id => 5, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
- { :id => 12, :project_id => 3, :user_id => 1, :read => true, :write => true, :admin => true },
- { :id => 13, :project_id => 3, :user_id => 2, :read => true, :write => false, :admin => false },
- { :id => 14, :project_id => 3, :user_id => 3, :read => true, :write => false, :admin => false },
- { :id => 15, :project_id => 3, :user_id => 4, :read => true, :write => false, :admin => false },
- { :id => 16, :project_id => 3, :user_id => 5, :read => true, :write => false, :admin => false }
+ { :id => 12, :project_id => 3, :user_id => 1, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
+ { :id => 13, :project_id => 3, :user_id => 2, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
+ { :id => 14, :project_id => 3, :user_id => 3, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N },
+ { :id => 15, :project_id => 3, :user_id => 4, :project_access => Project::PROJECT_R, :repo_access => Repository::REPO_N },
+ { :id => 16, :project_id => 3, :user_id => 5, :project_access => Project::PROJECT_RWA, :repo_access => Repository::REPO_N }
])
diff --git a/db/fixtures/development/005_issues.rb b/db/fixtures/development/005_issues.rb
new file mode 100644
index 00000000000..17664453923
--- /dev/null
+++ b/db/fixtures/development/005_issues.rb
@@ -0,0 +1,22 @@
+Issue.seed(:id, [
+ { :id => 1, :project_id => 1, :author_id => 1, :assignee_id => 1, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 2, :project_id => 1, :author_id => 2, :assignee_id => 2, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 3, :project_id => 1, :author_id => 3, :assignee_id => 3, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 4, :project_id => 1, :author_id => 4, :assignee_id => 4, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 5, :project_id => 1, :author_id => 5, :assignee_id => 5, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+
+ { :id => 6, :project_id => 2, :author_id => 1, :assignee_id => 1, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 7, :project_id => 2, :author_id => 2, :assignee_id => 2, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 8, :project_id => 2, :author_id => 3, :assignee_id => 3, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 9, :project_id => 2, :author_id => 4, :assignee_id => 4, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+ { :id => 11, :project_id => 2, :author_id => 5, :assignee_id => 5, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus." },
+
+ { :id => 12, :project_id => 3, :author_id => 1, :assignee_id => 1, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus."},
+ { :id => 13, :project_id => 3, :author_id => 2, :assignee_id => 2, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus."},
+ { :id => 14, :project_id => 3, :author_id => 3, :assignee_id => 3, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus."},
+ { :id => 15, :project_id => 3, :author_id => 4, :assignee_id => 4, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus."},
+ { :id => 16, :project_id => 3, :author_id => 5, :assignee_id => 5, :title => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt nunc purus."}
+])
+
+
+