Skip to content

Commit

Permalink
Fix long index name
Browse files Browse the repository at this point in the history
  • Loading branch information
brendon committed Nov 17, 2024
1 parent b6ac7ee commit 515c1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
t.references :includable, polymorphic: true
end

add_index :entities, [:includable_id, :includable_type, :position], unique: true
add_index :entities, [:includable_id, :includable_type, :position], unique: true, name: 'index_entities_on_includable_and_position'

create_table :items, force: true do |t|
t.string :name
Expand Down

0 comments on commit 515c1b1

Please sign in to comment.