mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
remove unique index
This commit is contained in:
1 parent
50c342ec5c
commit
c4f05fbd9e
2 files changed
+13
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveActiveStorageUniqIndex < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
remove_index :active_storage_attachments, %i[record_type record_id name blob_id],
|
||||
unique: true,
|
||||
name: 'index_active_storage_attachments_uniqueness'
|
||||
|
||||
add_index :active_storage_attachments, %i[record_type record_id name blob_id]
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user