Log when and why an email was not sent in email_logs

This commit is contained in:
Neil Lalonde
2014-02-14 13:06:21 -05:00
parent 42fb9d4fb1
commit 35dae76bbd
15 changed files with 164 additions and 37 deletions

View File

@ -0,0 +1,7 @@
class AddSkippedToEmailLogs < ActiveRecord::Migration
def change
add_column :email_logs, :skipped, :boolean, default: :false
add_column :email_logs, :skipped_reason, :string
add_index :email_logs, [:skipped, :created_at]
end
end