mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Don't delete user_projects yet! Needed for possible recovery actions.
This commit is contained in:
parent
34b0aec5b7
commit
31d77cc7c4
1 changed files with 0 additions and 2 deletions
|
@ -17,8 +17,6 @@ class MigrateToNewUserRoles < ActiveRecord::Migration[6.1]
|
|||
create_user_assignments(UserProject.normal_user, normal_user_role)
|
||||
create_user_assignments(UserProject.technician, technician_role)
|
||||
create_user_assignments(UserProject.viewer, viewer_role)
|
||||
|
||||
UserProject.delete_all
|
||||
end
|
||||
dir.down do
|
||||
project_assignments = UserAssignment.joins(:user_role).where(assignable_type: 'Project')
|
||||
|
|
Loading…
Reference in a new issue