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

feat: add token to existing records #13903
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jazzari 2023-08-10 16:13:13 -03:00
parent 705d15c0c1
commit 63fd91ee48

View file

@ -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