Fixed permission migration
This commit is contained in:
parent
1c62ec09b0
commit
9dfbcc6ef3
1 changed files with 1 additions and 1 deletions
|
@ -5,8 +5,8 @@ class MoveToRolesPermissions < ActiveRecord::Migration
|
|||
repo_rw = 2
|
||||
project_rwa = 3
|
||||
|
||||
UsersProject.update_all ["project_access = ?", UsersProject::MASTER], ["project_access = ?", project_rwa]
|
||||
UsersProject.update_all ["project_access = ?", UsersProject::DEVELOPER], ["repo_access = ?", repo_rw]
|
||||
UsersProject.update_all ["project_access = ?", UsersProject::MASTER], ["project_access = ?", project_rwa]
|
||||
UsersProject.update_all ["project_access = ?", UsersProject::REPORTER], ["repo_access = ?", repo_r]
|
||||
UsersProject.update_all ["project_access = ?", UsersProject::GUEST], ["repo_access = ?", repo_n]
|
||||
|
||||
|
|
Loading…
Reference in a new issue