0
0
Fork 0

Use composite primary key for PreviewCardsStatus model (#28208)

This commit is contained in:
Matt Jankowski 2023-12-07 09:49:05 -05:00 committed by GitHub
parent da3d8aff79
commit 3918dc68c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -9,9 +9,7 @@
# url :string
#
class PreviewCardsStatus < ApplicationRecord
# Composite primary keys are not properly supported in Rails. However,
# we shouldn't need this anyway...
self.primary_key = nil
self.primary_key = [:preview_card_id, :status_id]
belongs_to :preview_card
belongs_to :status