iachat/db/migrate/20250726142410_add_whatsapp_channel_provider_index.rb
Gabriel Jablonski 2cf1795a3b
feat: baileys connection period check (#87)
* feat: periodic check for baileys connection

* chore: add index on provider connection
2025-07-26 11:38:16 -03:00

11 lines
311 B
Ruby

class AddWhatsappChannelProviderIndex < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_index :channel_whatsapp, :provider_connection,
using: :gin,
where: "provider = 'baileys'",
name: 'index_channel_whatsapp_baileys_connection'
end
end