mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:01:41 +00:00
fixup! feat: asociar rol con deploy nos permite acceder al token
This commit is contained in:
parent
476ab951bb
commit
1404d2006d
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class AddRolToDeploys < ActiveRecord::Migration[6.1]
|
|||
add_column :deploys, :rol_id, :integer, index: true
|
||||
|
||||
Deploy.find_each do |deploy|
|
||||
rol_id = deploy.site.roles.find_by(rol: 'usuarie', temporal: false).id
|
||||
rol_id = deploy.site.roles.find_by(rol: 'usuarie', temporal: false)&.id
|
||||
|
||||
deploy.update_column(:rol_id, rol_id) if rol_id
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue