forgeplus/app/models/diff_record.rb

8 lines
202 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
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