5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 13:26:23 +00:00

fix: cambio nombre comuna token_cyphertext en modelo rol y asignación retroactiva #13903
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jazzari 2023-07-31 18:46:07 -03:00
parent 579e177684
commit c19c834f10

View file

@ -1,5 +1,6 @@
class ChangeTokenName < ActiveRecord::Migration[6.1]
def change
rename_column :roles, :token, :token_cyphertext
Rol.find_each { |m| m.update_column( :token_cyphertext, SecureRandom.hex(64) ) }
end
end