aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/active_storage/migration.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/active_storage/migration.rb b/lib/active_storage/migration.rb
index 99d8b8554b..e843c1b630 100644
--- a/lib/active_storage/migration.rb
+++ b/lib/active_storage/migration.rb
@@ -21,9 +21,7 @@ class ActiveStorageCreateTables < ActiveRecord::Migration[5.1] # :nodoc:
t.datetime :created_at
t.index :blob_id
- t.index [ :record_type, :record_id ]
- t.index [ :record_type, :record_id, :name ], name: "index_active_storage_attachments_record_and_name"
- t.index [ :record_type, :record_id, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
+ t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
end
end
end