add user encrypted configs

This commit is contained in:
DocuSeal
2023-09-25 01:57:10 +03:00
parent 9da7463657
commit 11a90d797a
10 changed files with 60 additions and 0 deletions
@@ -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