mirror of https://github.com/docusealco/docuseal
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.
12 lines
328 B
12 lines
328 B
# frozen_string_literal: true
|
|
|
|
class AddSubmittersCompletedAtPartialIndex < ActiveRecord::Migration[8.1]
|
|
def up
|
|
add_index :submitters, %i[account_id completed_at], where: 'completed_at IS NOT NULL', if_not_exists: true
|
|
end
|
|
|
|
def down
|
|
remove_index :submitters, %i[account_id completed_at], if_exists: true
|
|
end
|
|
end
|