mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix completed_at index
This commit is contained in:
1 parent
cf30441ac6
commit
a49a645022
5 files changed
+27
-5
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveSubmittersCompletedAtIndex < ActiveRecord::Migration[8.1]
|
||||
def up
|
||||
remove_index :submitters, %i[completed_at account_id], if_exists: true
|
||||
end
|
||||
|
||||
def down
|
||||
add_index :submitters, %i[completed_at account_id], if_not_exists: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user