Log mail delivery errors to database and add an UI for it
This commit is contained in:
parent
0363f2dadc
commit
97abcabffa
16 changed files with 137 additions and 4 deletions
5
app/models/mail_delivery_status.rb
Normal file
5
app/models/mail_delivery_status.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class MailDeliveryStatus < ActiveRecord::Base
|
||||
self.table_name = 'mail_delivery_status'
|
||||
|
||||
belongs_to :user, foreign_key: 'email', primary_key: 'email'
|
||||
end
|
||||
|
|
@ -18,6 +18,7 @@ class User < ActiveRecord::Base
|
|||
has_many :tasks, :through => :assignments
|
||||
has_many :send_messages, :class_name => "Message", :foreign_key => "sender_id"
|
||||
has_many :created_orders, :class_name => 'Order', :foreign_key => 'created_by_user_id', :dependent => :nullify
|
||||
has_many :mail_delivery_status, :class_name => 'MailDeliveryStatus', :foreign_key => 'email', :primary_key => 'email'
|
||||
|
||||
attr_accessor :password, :settings_attributes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue