add account access

This commit is contained in:
Pete Matsyburka
2025-05-18 12:13:23 +03:00
parent 82f3ff4824
commit 01232aed5a
8 changed files with 64 additions and 5 deletions
+1
View File
@@ -33,6 +33,7 @@ class Account < ApplicationRecord
has_many :account_linked_accounts, dependent: :destroy
has_many :email_events, dependent: :destroy
has_many :webhook_urls, dependent: :destroy
has_many :account_accesses, dependent: :destroy
has_many :account_testing_accounts, -> { testing }, dependent: :destroy,
class_name: 'AccountLinkedAccount',
inverse_of: :account