mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
8 lines
202 B
Ruby
8 lines
202 B
Ruby
class DiffRecord < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :container, polymorphic: true
|
|
|
|
has_one :diff_record_content, dependent: :destroy
|
|
|
|
delegate :content, to: :diff_record_content
|
|
end |