2023-07-31 20:32:14 +00:00
|
|
|
class AddTokenToRoles < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
add_column :roles, :token, :text
|
2023-08-10 19:13:13 +00:00
|
|
|
Rol.find_each { |m| m.update_column( :token, SecureRandom.hex(64) ) }
|
2023-07-31 20:32:14 +00:00
|
|
|
end
|
|
|
|
end
|