Remove extraneous fields from primary keys for relation members

This commit is contained in:
Tom Hughes 2023-10-10 20:53:20 +01:00
parent af8e08960e
commit 4f542ef900
4 changed files with 14 additions and 4 deletions

View file

@ -19,7 +19,6 @@
class RelationMember < ApplicationRecord
self.table_name = "current_relation_members"
self.primary_key = %w[relation_id sequence_id]
belongs_to :relation
belongs_to :member, :polymorphic => true