dawarich/db/migrate/[timestamp]_add_index_to_points_timestamp.rb

10 lines
216 B
Ruby
Raw Normal View History

2024-12-06 10:52:36 -05:00
# 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