Chatwoot/db/migrate/20170404095857_add_index_on_fb_page.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

10 lines
314 B
Ruby

class AddIndexOnFbPage < ActiveRecord::Migration[5.0]
def change
add_index :facebook_pages, :page_id
add_index :conversations, :account_id
add_index :contacts, :account_id
add_index :inbox_members, :inbox_id
add_index :inboxes, :account_id
add_index :messages, :conversation_id
end
end