1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Collapse indeces per Jeremy.

This commit is contained in:
Kasper Timm Hansen 2017-07-23 21:19:34 +02:00
parent 5963766d84
commit 212f925654
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -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