Skip to content

Commit e7e2b3c

Browse files
committed
chore(db): add matches index
1 parent 01fa563 commit e7e2b3c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

db/schema.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_02_12_000000) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_02_14_171659) do
1414
create_schema "auth"
1515
create_schema "extensions"
1616
create_schema "graphql"
@@ -176,8 +176,10 @@
176176
t.datetime "updated_at", null: false
177177
t.index ["game_start"], name: "index_matches_on_game_start"
178178
t.index ["match_type"], name: "index_matches_on_match_type"
179+
t.index ["organization_id", "created_at"], name: "idx_matches_org_created"
179180
t.index ["organization_id", "game_start", "victory"], name: "idx_matches_org_game_start_victory", comment: "Otimiza queries de winrate por período"
180181
t.index ["organization_id", "game_start"], name: "idx_matches_org_game_start"
182+
t.index ["organization_id", "id"], name: "idx_matches_org_id"
181183
t.index ["organization_id", "victory"], name: "idx_matches_org_victory"
182184
t.index ["organization_id"], name: "index_matches_on_organization_id"
183185
t.index ["riot_match_id"], name: "index_matches_on_riot_match_id", unique: true

0 commit comments

Comments
 (0)