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."} +]) + + +