Commit 9dfbcc6ef39a4eeba82867cc7a9948f68537553f
1 parent
1c62ec09
Exists in
master
and in
4 other branches
Fixed permission migration
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20120216085842_move_to_roles_permissions.rb
... | ... | @@ -5,8 +5,8 @@ class MoveToRolesPermissions < ActiveRecord::Migration |
5 | 5 | repo_rw = 2 |
6 | 6 | project_rwa = 3 |
7 | 7 | |
8 | - UsersProject.update_all ["project_access = ?", UsersProject::MASTER], ["project_access = ?", project_rwa] | |
9 | 8 | UsersProject.update_all ["project_access = ?", UsersProject::DEVELOPER], ["repo_access = ?", repo_rw] |
9 | + UsersProject.update_all ["project_access = ?", UsersProject::MASTER], ["project_access = ?", project_rwa] | |
10 | 10 | UsersProject.update_all ["project_access = ?", UsersProject::REPORTER], ["repo_access = ?", repo_r] |
11 | 11 | UsersProject.update_all ["project_access = ?", UsersProject::GUEST], ["repo_access = ?", repo_n] |
12 | 12 | ... | ... |