Encrypt access_token and refresh_token

This commit is contained in:
bumi committed 2020-04-09 00:49:20 +02:00
1 parent 4b0a054596
commit 73ccddee94
6 files changed
+19 -2

No files matched your search

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