mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 17:36:21 +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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
579e177684
commit
c19c834f10
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
class ChangeTokenName < ActiveRecord::Migration[6.1]
|
class ChangeTokenName < ActiveRecord::Migration[6.1]
|
||||||
def change
|
def change
|
||||||
rename_column :roles, :token, :token_cyphertext
|
rename_column :roles, :token, :token_cyphertext
|
||||||
|
Rol.find_each { |m| m.update_column( :token_cyphertext, SecureRandom.hex(64) ) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue