dawarich/db/migrate/20250805184855_add_device_id_to_points.rb
2025-08-05 22:06:34 +02:00

9 lines
223 B
Ruby

# frozen_string_literal: true
class AddDeviceIdToPoints < ActiveRecord::Migration[8.0]
disable_ddl_transaction!
def change
add_reference :points, :device, null: true, index: { algorithm: :concurrently }
end
end