20220428114454_add_index_reports_on_assigned_account_id.rb 283 B

1234567
  1. class AddIndexReportsOnAssignedAccountId < ActiveRecord::Migration[6.1]
  2. disable_ddl_transaction!
  3. def change
  4. add_index :reports, [:assigned_account_id], name: :index_reports_on_assigned_account_id, algorithm: :concurrently, where: 'assigned_account_id IS NOT NULL'
  5. end
  6. end