add user tokens

This commit is contained in:
Pete Matsyburka
2024-12-22 11:33:15 +02:00
parent 0a382a688c
commit 9ce822bce8
+1
View File
@@ -57,6 +57,7 @@ class User < ApplicationRecord
belongs_to :account
has_one :access_token, dependent: :destroy
has_many :access_tokens, dependent: :destroy
has_many :templates, dependent: :destroy, foreign_key: :author_id, inverse_of: :author
has_many :template_folders, dependent: :destroy, foreign_key: :author_id, inverse_of: :author
has_many :user_configs, dependent: :destroy