2 ms·
Perhaps too late, but Rails 7.1[1] introduced composite primary key support, and there's been a third-party gem[2] offering the functionality for earlier versio
by modderation 3y ago
Perhaps too late, but Rails 7.1[1] introduced composite primary key support, and there's been a third-party gem[2] offering the functionality for earlier versions of ActiveRecord.
[1] https://guides.rubyonrails.org/7_1_release_notes.html#composite-primary-keys https://guides.rubyonrails.org/7_1_release_notes.html#compos...
[2] https://github.com/composite-primary-keys/composite_primary_keys https://github.com/composite-primary-keys/composite_primary_...