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
13
db/migrate/20170801000000_create_mail_delivery_status.rb
Normal file
13
db/migrate/20170801000000_create_mail_delivery_status.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class CreateMailDeliveryStatus < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :mail_delivery_status do |t|
|
||||
t.datetime :created_at
|
||||
t.string :email, :null => false
|
||||
t.string :message, :null => false
|
||||
t.string :attachment_mime
|
||||
t.binary :attachment_data, limit: 16.megabyte
|
||||
|
||||
t.index :email
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue