Chatwoot/db/migrate/20220802193353_add_conversation_uuid_unique_index.rb
Jordan Brough 9ddf4c205c
chore: Add index on conversations.uuid (#5179)
- We search for conversations by this attribute (e.g. in ReplyMailbox and CsatSurveyController) so it seems like we should have an index on it.
2022-08-23 19:05:30 +05:30

5 lines
141 B
Ruby

class AddConversationUuidUniqueIndex < ActiveRecord::Migration[6.1]
def change
add_index :conversations, :uuid, unique: true
end
end