Encrypt access_token and refresh_token
This commit is contained in:
8
db/migrate/20200408212150_add_lockbox_columns.rb
Normal file
8
db/migrate/20200408212150_add_lockbox_columns.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class AddLockboxColumns < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :authentications, :access_token_ciphertext, :text
|
||||
add_column :authentications, :refresh_token_ciphertext, :text
|
||||
remove_column :authentications, :access_token
|
||||
remove_column :authentications, :refresh_token
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user