PERF: Store EmailLog#reply_key as uuid data type.

This commit is contained in:
Guo Xiang Tan
2018-07-17 17:05:04 +08:00
parent 22dad7f0e8
commit 3553375dd2
3 changed files with 26 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
class AlterReplyKeyOnEmailLogs < ActiveRecord::Migration[5.2]
def up
change_column :email_logs, :reply_key, 'uuid USING reply_key::uuid'
end
def down
change_column :email_logs, :reply_key, :string
end
end