Drop reply_key, skipped and skipped_reason from email_logs.

This commit is contained in:
Guo Xiang Tan
2018-07-27 12:32:07 +08:00
parent b94633e844
commit 87537b679c
10 changed files with 65 additions and 62 deletions

View File

@@ -241,9 +241,12 @@ Migration::ColumnDropper.drop(
Migration::ColumnDropper.drop(
table: 'email_logs',
after_migration: 'DropTopicIdOnEmailLogs',
after_migration: 'DropReplyKeySkippedSkippedReasonFromEmailLogs',
columns: %w{
topic_id
reply_key
skipped
skipped_reason
},
on_drop: ->() {
STDERR.puts "Removing superflous email_logs columns!"