You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/db/migrate/20250618085322_add_archived...

9 lines
295 B

# 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