Files
docuseal/db/migrate/20250618085322_add_archived_templates_index.rb
Pete Matsyburka 2491b7b7e3 adjust indexes
2025-06-18 11:56:42 +03:00

9 lines
295 B
Ruby

# frozen_string_literal: true
class AddArchivedTemplatesIndex < ActiveRecord::Migration[8.0]
def change
add_index :templates, %i[account_id id], where: 'archived_at IS NOT NULL',
name: 'index_templates_on_account_id_and_id_archived'
end
end