Skip to content

Commit

Permalink
fixed migration
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 26, 2024
1 parent f2536c4 commit 6c61adc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
9 changes: 2 additions & 7 deletions db/migrate/20241126212912_add_indexes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,15 @@ def change


# Rounds table
add_index :rounds, :phase_id
remove_index :rounds, [:phase_id, :round_number]
remove_index :rounds, :phase_id

# Matches table
add_index :matches, [:tournament_id, :created_at] # For tournament match history
add_index :matches, [:tournament_id, :phase_id, :round_id, :table_number]
add_index :matches, :round_id
add_index :matches, :winner_id
add_index :matches, :loser_id
remove_index :matches, :tournament_id
remove_index :matches, [:round_id, :player_one_id, :player_two_id]

# Match Games table


# Chat Messages table
add_index :chat_messages, [:match_id, :account_id, :sent_at] # For message history
add_index :chat_messages, [:match_id, :profile_id, :sent_at] # For message history
Expand Down
9 changes: 5 additions & 4 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c61adc

Please sign in to comment.