module ActionMerge class Document < ApplicationRecord belongs_to :syncable, polymorphic: true has_many :action_merge_document_chunks, as: :chunks, foreign_key: :document_id end end