add user encrypted configs

This commit is contained in:
DocuSeal committed 2023-10-20 13:16:39 +03:00
1 parent 9da7463657
commit 11a90d797a
10 files changed
+60

No files matched your search

@@ -0,0 +1,15 @@
# frozen_string_literal: true
class CreateEncryptedUserConfigs < ActiveRecord::Migration[7.0]
def change
create_table :encrypted_user_configs do |t|
t.references :user, null: false, foreign_key: true, index: true
t.string :key, null: false
t.text :value, null: false
t.index %i[user_id key], unique: true
t.timestamps
end
end
end