feat: add index migration (#7050)

This commit is contained in:
Shivam Mishra
2023-05-10 17:55:14 +05:30
committed by GitHub
parent 86384bf876
commit d0a1ad746a
3 changed files with 10 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_05_09_101256) do
ActiveRecord::Schema[7.0].define(version: 2023_05_10_060828) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "pg_trgm"
@@ -666,6 +666,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_09_101256) do
t.index ["account_id", "inbox_id"], name: "index_messages_on_account_id_and_inbox_id"
t.index ["account_id"], name: "index_messages_on_account_id"
t.index ["content"], name: "index_messages_on_content", opclass: :gin_trgm_ops, using: :gin
t.index ["conversation_id", "account_id", "message_type", "created_at"], name: "index_messages_on_conversation_account_type_created"
t.index ["conversation_id"], name: "index_messages_on_conversation_id"
t.index ["created_at"], name: "index_messages_on_created_at"
t.index ["inbox_id"], name: "index_messages_on_inbox_id"