mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add SMTP group ID to EmailLog (#13381)
Adds a new `smtp_group_id` column to `EmailLog` which is filled in if the mail `from_address` matches a group's `email_username`. This is for easier debugging, so we know which emails have been sent via group SMTP.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSmtpGroupIdToEmailLog < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :email_logs, :smtp_group_id, :integer, null: true, index: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user