dawarich/db/migrate/[timestamp]_add_index_to_points_timestamp.rb
2024-12-06 16:52:36 +01:00

9 lines
216 B
Ruby

# frozen_string_literal: true
class AddIndexToPointsTimestamp < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
add_index :points, %i[user_id timestamp], algorithm: :concurrently
end
end