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
+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?