Skip to content

Commit

Permalink
fix email messages user assoc
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Dec 10, 2023
1 parent a32dcc0 commit 8ef1c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class User < ApplicationRecord
has_many :template_folders, dependent: :destroy, foreign_key: :author_id, inverse_of: :author
has_many :user_configs, dependent: :destroy
has_many :encrypted_configs, dependent: :destroy, class_name: 'EncryptedUserConfig'
has_many :email_messages, dependent: :destroy
has_many :email_messages, dependent: :destroy, foreign_key: :author_id, inverse_of: :author

devise :two_factor_authenticatable, :recoverable, :rememberable, :validatable, :trackable

Expand Down

0 comments on commit 8ef1c30

Please sign in to comment.