mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
10 lines
290 B
Ruby
10 lines
290 B
Ruby
|
|
class AddTrackGenerationCompositeIndex < ActiveRecord::Migration[8.0]
|
||
|
|
disable_ddl_transaction!
|
||
|
|
|
||
|
|
def change
|
||
|
|
add_index :points, [:user_id, :timestamp, :track_id],
|
||
|
|
algorithm: :concurrently,
|
||
|
|
name: 'idx_points_track_generation', if_not_exists: true
|
||
|
|
end
|
||
|
|
end
|