rsim / oracle-enhanced

Oracle enhaced adapter for ActiveRecord
MIT License
545 stars 308 forks source link

unique constraint to also specify index #2293

Closed akostadinov closed 2 years ago

akostadinov commented 2 years ago

This patch makes unique constraints to also specify index name it should affect.

Otherwise it picks the first index that it finds that contains that column name, even if it is shared with other columns and it is not unique.

I included in the pull request two other test updates if you don't mind.