use account_id

This commit is contained in:
Pete Matsyburka committed 2024-08-19 19:51:24 +03:00
1 parent b8828b503c
commit e2bdb2acee
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ class Account < ApplicationRecord
has_one :default_template_folder, -> { where(name: TemplateFolder::DEFAULT_NAME) },
class_name: 'TemplateFolder', dependent: :destroy, inverse_of: :account
has_many :submissions, dependent: :destroy
has_many :submitters, through: :submissions
has_many :submitters, dependent: :destroy
has_many :account_linked_accounts, dependent: :destroy
has_many :email_events, dependent: :destroy
has_many :webhook_urls, dependent: :destroy
+1 -1
View File
@@ -38,8 +38,8 @@
#
class Submitter < ApplicationRecord
belongs_to :submission
belongs_to :account
has_one :template, through: :submission
has_one :account, through: :submission
attribute :values, :string, default: -> { {} }
attribute :preferences, :string, default: -> { {} }