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

+1
View File
@@ -53,6 +53,7 @@ class User < ApplicationRecord
has_one :access_token, dependent: :destroy
has_many :templates, dependent: :destroy, foreign_key: :author_id, inverse_of: :author
has_many :user_configs, dependent: :destroy
has_many :encrypted_configs, dependent: :destroy, class_name: 'EncryptedUserConfig'
devise :two_factor_authenticatable, :recoverable, :rememberable, :validatable, :trackable
devise :registerable, :omniauthable, omniauth_providers: [:google_oauth2] if Docuseal.multitenant?