From 21b279d5511fd11c77a61775d36a9e70c656425c Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 24 Apr 2020 15:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4attachment=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=9A=84attachment=5Fhistories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 45ba882d..4057e7b9 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -8,7 +8,7 @@ class Attachment < ApplicationRecord belongs_to :author, class_name: "User", foreign_key: :author_id # belongs_to :course, foreign_key: :container_id, optional: true # has_many :attachment_group_settings, :dependent => :destroy - has_many :attachment_histories, -> { order(version: :desc) }, :dependent => :destroy + # has_many :attachment_histories, -> { order(version: :desc) }, :dependent => :destroy # 二级目录 # belongs_to :course_second_category, optional: true