Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
379 B
Raw Blame
class AddInvestmentTotalsLookupIndexToEntries < ActiveRecord::Migration[7.2]
  disable_ddl_transaction!

  def change
    add_index :entries,
              [ :account_id, :date, :entryable_id ],
              name: "index_entries_on_investment_totals_lookup",
              where: "entryable_type = 'Trade' AND excluded = false",
              algorithm: :concurrently
  end
end