## Summary Changes `messages.source_id` from `string` (255 char limit) to `text` (20,000 char limit) to support long email Message-ID headers. ## Changes - Migration to change column type from string to text - Added spec tests for source_id length validation ## Related Fixes https://linear.app/chatwoot/issue/CW-5961/activerecordrecordinvalid-validation-failed-source-is-too-long-maximum
10 lines
199 B
Ruby
10 lines
199 B
Ruby
class ChangeMessagesSourceIdToText < ActiveRecord::Migration[7.1]
|
|
def up
|
|
change_column :messages, :source_id, :text
|
|
end
|
|
|
|
def down
|
|
change_column :messages, :source_id, :string
|
|
end
|
|
end
|