mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 11:26:22 +00:00
feat: add token to existing records #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
705d15c0c1
commit
63fd91ee48
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
class AddTokenToRoles < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :roles, :token, :text
|
||||
Rol.find_each { |m| m.update_column( :token, SecureRandom.hex(64) ) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue