Use composite primary key for PreviewCardsStatus
model (#28208)
This commit is contained in:
parent
da3d8aff79
commit
3918dc68c7
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue