Skip to content

Commit b95077a

Browse files
authored
Merge pull request rails#43045 from sandip-mane/array-syntax-consistancy
Makes the array syntax consistent with other use cases
2 parents bef825e + 458d2d3 commit b95077a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activestorage/db/migrate/20170806125915_create_active_storage_tables.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ def change
3232
t.datetime :created_at, null: false
3333
end
3434

35-
t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
35+
t.index [ :record_type, :record_id, :name, :blob_id ], name: :index_active_storage_attachments_uniqueness, unique: true
3636
t.foreign_key :active_storage_blobs, column: :blob_id
3737
end
3838

3939
create_table :active_storage_variant_records, id: primary_key_type do |t|
4040
t.belongs_to :blob, null: false, index: false, type: foreign_key_type
4141
t.string :variation_digest, null: false
4242

43-
t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
43+
t.index [ :blob_id, :variation_digest ], name: :index_active_storage_variant_records_uniqueness, unique: true
4444
t.foreign_key :active_storage_blobs, column: :blob_id
4545
end
4646
end

0 commit comments

Comments
 (0)