Commit 9dfbcc6e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed permission migration

parent 1c62ec09
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment