mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
fix: disable_ddl_transaction! on add_index action (#11833)
All migrations will automatically be wrapped in a transaction. There are queries that you can’t execute inside a transaction. Adding index concurrently is one of them, we have to disable the transaction. I missed this in the earlier PR. #11831
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
class AddIndexToMessages < ActiveRecord::Migration[7.0]
|
class AddIndexToMessages < ActiveRecord::Migration[7.0]
|
||||||
|
disable_ddl_transaction!
|
||||||
|
|
||||||
def change
|
def change
|
||||||
# This index is added as a temporary fix for performance issues in the CSAT
|
# This index is added as a temporary fix for performance issues in the CSAT
|
||||||
# responses controller where we query messages with account_id, content_type
|
# responses controller where we query messages with account_id, content_type
|
||||||
|
|||||||
Reference in New Issue
Block a user