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
						
					
					
						
							389 B
						
					
					
				
			
		
		
	
	
							12 lines
						
					
					
						
							389 B
						
					
					
				# 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
 |