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
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2020_04_05_161905) do
|
||||
ActiveRecord::Schema.define(version: 2020_04_08_212150) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
Reference in New Issue
Block a user