Files
docuseal/db/migrate/20240816121641_remove_active_storage_uniq_index.rb
T
2024-08-19 19:51:24 +03:00

12 lines
389 B
Ruby

# 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